Skip to content

Commit bd91b15

Browse files
committed
Update build.yml
1 parent 92bc163 commit bd91b15

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,11 @@ jobs:
244244
# https://github.com/scikit-build/scikit-build-core/blob/3943920fa267dc83f9295279bea1c774c0916f13/src/scikit_build_core/program_search.py#L70
245245
for TOOL in cmake cmake3 ninja-build ninja samu; do
246246
while which ${TOOL}; do
247-
sudo rm -f $(which -a ${TOOL})
247+
if [ "$RUNNER_OS" == "Windows" ]; then
248+
rm -f "$(which ${TOOL})"
249+
else
250+
sudo rm -f $(which -a ${TOOL})
251+
fi
248252
done
249253
done
250254

0 commit comments

Comments
 (0)