Skip to content

Commit

Permalink
github actions: setting temp directory in Windows to try to resolve i…
Browse files Browse the repository at this point in the history
…ssues with too long paths
  • Loading branch information
StephenCzarnecki committed Oct 25, 2024
1 parent ba5862f commit 8b316b3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ jobs:
build_wheels_windows:
name: ${{ matrix.os }} ${{ matrix.python-version }} ${{ matrix.arch }} wheels
runs-on: ${{ matrix.os }}
env:
TEMP: C:\Temp
TMP: C:\Temp

strategy:
matrix:
os: [windows-2022]
arch: [x86, x64]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]

steps:
- name: Check LongPathsEnabled
run: |
(Get-ItemProperty "HKLM:System\CurrentControlSet\Control\FileSystem").LongPathsEnabled
- name: Set up short temp directory
run: mkdir C:\Temp

- name: Support longpaths
run: git config --system core.longpaths true
Expand Down

0 comments on commit 8b316b3

Please sign in to comment.