We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20e0ce3 commit ce6c03dCopy full SHA for ce6c03d
.github/workflows/build-wheel.yml
@@ -86,8 +86,11 @@ jobs:
86
echo "Error: cl.exe not found in PATH"
87
exit 1
88
fi
89
+ function normpath() {
90
+ echo "$(echo $(cygpath -w $1) | sed 's/\\/\\\\/g')"
91
+ }
92
echo "Found cl.exe at: ${CL_EXE}"
- echo "CL_EXE=$(cygpath -w ${CL_EXE})" >> $GITHUB_ENV
93
+ echo "CL_EXE=$(normpath ${CL_EXE})" >> $GITHUB_ENV
94
95
- name: Generate sccache wrapper script
96
if: ${{ startsWith(inputs.host-platform, 'win') }}
@@ -101,7 +104,7 @@ jobs:
101
104
EOF
102
105
cat sccache_wrapper/cl.exe
103
106
# Prepend the wrapper directory to PATH
- echo "$(cygpath -w $(pwd)/sccache_wrapper)" >> $GITHUB_PATH
107
+ echo "$(normpath $(pwd)/sccache_wrapper)" >> $GITHUB_PATH
108
109
- name: Set environment variables
110
env:
0 commit comments