Skip to content

Commit ce6c03d

Browse files
authored
debug
1 parent 20e0ce3 commit ce6c03d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-wheel.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,11 @@ jobs:
8686
echo "Error: cl.exe not found in PATH"
8787
exit 1
8888
fi
89+
function normpath() {
90+
echo "$(echo $(cygpath -w $1) | sed 's/\\/\\\\/g')"
91+
}
8992
echo "Found cl.exe at: ${CL_EXE}"
90-
echo "CL_EXE=$(cygpath -w ${CL_EXE})" >> $GITHUB_ENV
93+
echo "CL_EXE=$(normpath ${CL_EXE})" >> $GITHUB_ENV
9194
9295
- name: Generate sccache wrapper script
9396
if: ${{ startsWith(inputs.host-platform, 'win') }}
@@ -101,7 +104,7 @@ jobs:
101104
EOF
102105
cat sccache_wrapper/cl.exe
103106
# Prepend the wrapper directory to PATH
104-
echo "$(cygpath -w $(pwd)/sccache_wrapper)" >> $GITHUB_PATH
107+
echo "$(normpath $(pwd)/sccache_wrapper)" >> $GITHUB_PATH
105108
106109
- name: Set environment variables
107110
env:

0 commit comments

Comments
 (0)