dev(ci): add --break-system-packages to pip install

Partially resolves #8025

Only use break system install on macos

Try extra brew install

Brew install on mac, pip install on rest

Try using windows-2019 instead of latest (2022)

Back to original windows
This commit is contained in:
Cornelius Roemer 2024-08-24 18:10:29 +02:00
parent 004eaf8dfc
commit cfe29b687f

View file

@ -27,7 +27,12 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}
- name: Fix node-gyp and Python
run: python3 -m pip install packaging setuptools
run: |
if [[ "$RUNNER_OS" == "macOS" ]]; then
brew install python-setuptools python-packaging
else
python3 -m pip install $EXTRA_ARGS packaging setuptools
fi
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT