Skip to content

Commit 3beca88

Browse files
authored
it's always the path format issue
1 parent d60edf3 commit 3beca88

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/build-wheel.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,10 @@ jobs:
105105
}
106106
ls
107107
108-
Add-Content -Path $env:GITHUB_ENV -Value "SCCACHE_WRAPPER_DIR=$((Get-Location).ProviderPath)"
109-
110108
- name: debug
111109
if: ${{ startsWith(inputs.host-platform, 'win') }}
112110
run: |
113-
pushd ..
114-
which cl.exe
115-
where cl.exe
116-
popd
111+
echo "SCCACHE_WRAPPER_DIR=$(realpath .)" >> $GITHUB_ENV
117112
118113
- name: Set environment variables
119114
env:
@@ -206,7 +201,7 @@ jobs:
206201
SCCACHE_CACHE_SIZE=${{ env.SCCACHE_CACHE_SIZE }}
207202
SCCACHE_LOG=debug
208203
DISTUTILS_USE_SDK=1
209-
PATH="${{ env.SCCACHE_WRAPPER_DIR }};$(dirname "${{ env.SCCACHE_PATH }}");$PATH"
204+
PATH="$(cygpath -w ${{ env.SCCACHE_WRAPPER_DIR }});$(dirname "${{ env.SCCACHE_PATH }}");$PATH"
210205
CL_EXE="$(cygpath -w ${{ env.CL_EXE }})"
211206
# check cache stats before leaving cibuildwheel
212207
CIBW_BEFORE_TEST_LINUX: >

0 commit comments

Comments
 (0)