File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,21 @@ jobs:
128128 name : cibw-sdist
129129 path : sdist
130130
131- - name : Ensure Ninja not present on the system
132- run : if which ninja; then false; fi
131+ - name : Remove ninja
132+ shell : bash
133+ run : |
134+ # Remove ninja
135+ set -euxo pipefail
136+ # https://github.com/scikit-build/scikit-build-core/blob/3943920fa267dc83f9295279bea1c774c0916f13/src/scikit_build_core/program_search.py#L70
137+ for TOOL in ninja-build ninja samu; do
138+ while which ${TOOL}; do
139+ if [ "$RUNNER_OS" == "Windows" ]; then
140+ rm -f "$(which ${TOOL})"
141+ else
142+ sudo rm -f $(which -a ${TOOL})
143+ fi
144+ done
145+ done
133146
134147 - name : Install SDist
135148 run : pip install --no-binary=ninja $(ls sdist/*.tar.gz)[test]
You can’t perform that action at this time.
0 commit comments