Skip to content

Commit 236d5d6

Browse files
committed
Update build.yml
1 parent 793aa18 commit 236d5d6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,12 @@ jobs:
232232

233233
- name: Remove cmake and ninja
234234
run: |
235-
for TOOL in cmake ninja; do
236-
while which -s ${TOOL}; do
235+
# Remove cmake and ninja
236+
set -euxo pipefail
237+
# https://github.com/scikit-build/scikit-build-core/blob/3943920fa267dc83f9295279bea1c774c0916f13/src/scikit_build_core/program_search.py#L51
238+
# https://github.com/scikit-build/scikit-build-core/blob/3943920fa267dc83f9295279bea1c774c0916f13/src/scikit_build_core/program_search.py#L70
239+
for TOOL in cmake cmake3 ninja-build ninja samu; do
240+
while which ${TOOL}; do
237241
sudo rm -f $(which -a ${TOOL})
238242
done
239243
done

0 commit comments

Comments
 (0)