From 8b316b32e2ad6a5e6f4cb78dbc912e238bf14f96 Mon Sep 17 00:00:00 2001 From: StephenCzarnecki Date: Fri, 25 Oct 2024 14:28:46 -0400 Subject: [PATCH] github actions: setting temp directory in Windows to try to resolve issues with too long paths --- .github/workflows/build_wheels.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 257096f..1cf3af8 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -8,6 +8,10 @@ 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] @@ -15,9 +19,8 @@ jobs: 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