Skip to content

Commit

Permalink
Fix python setup for macOS arm builds
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Wise <[email protected]>
  • Loading branch information
m4heshd and JoshuaWise committed Apr 5, 2024
1 parent d4e1c12 commit 0d45021
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prebuild-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 16
- run: python3 -m pip install setuptools
- run: python3 -m pip install --break-system-packages setuptools
- run: npm install --ignore-scripts
- run: ${{ env.TEST_COMMAND }}

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ jobs:
node-version: 16
- if: ${{ startsWith(matrix.os, 'windows') }}
run: pip.exe install setuptools
- if: ${{ ! startsWith(matrix.os, 'windows') }}
- if: ${{ ! startsWith(matrix.os, 'windows') && matrix.os != 'macos-14' }}
run: python3 -m pip install setuptools
- if: matrix.os == 'macos-14'
run: python3 -m pip install --break-system-packages setuptools
- run: npm install --ignore-scripts
- run: ${{ env.NODE_BUILD_CMD }}
- run: ${{ env.ELECTRON_BUILD_CMD }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
os:
- ubuntu-20.04
- macos-latest
- macos-14
- windows-2019
node:
- 18
Expand All @@ -31,8 +32,10 @@ jobs:
node-version: ${{ matrix.node }}
- if: ${{ startsWith(matrix.os, 'windows') }}
run: pip.exe install setuptools
- if: ${{ ! startsWith(matrix.os, 'windows') }}
- if: ${{ ! startsWith(matrix.os, 'windows') && matrix.os != 'macos-14' }}
run: python3 -m pip install setuptools
- if: matrix.os == 'macos-14'
run: python3 -m pip install --break-system-packages setuptools
- run: npm install --ignore-scripts
- run: npm run build-debug
- run: npm test
Expand Down

0 comments on commit 0d45021

Please sign in to comment.