Skip to content

Commit

Permalink
dev(ci): add --break-system-packages to pip install
Browse files Browse the repository at this point in the history
Partially resolves vercel#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
  • Loading branch information
corneliusroemer committed Aug 24, 2024
1 parent 004eaf8 commit cfe29b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cfe29b6

Please sign in to comment.