Skip to content

Commit

Permalink
Build arm based macOS builds natively
Browse files Browse the repository at this point in the history
  • Loading branch information
m4heshd committed Feb 8, 2024
1 parent fec8635 commit db79b8e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/prebuild-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,19 @@ jobs:
- if: matrix.os == 'macos-latest' && inputs.arm == true
run: ${{ env.TEST_COMMAND }} --arch arm64

prebuild-test-mac-arm64:
if: inputs.macos-latest == true && inputs.arm == true
name: Testing prebuild M1 macOS (arm64)
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: python3 -m pip install setuptools
- run: npm install --ignore-scripts
- run: ${{ env.TEST_COMMAND }}

prebuild-test-alpine-linux:
if: inputs.alpine == true
name: Testing prebuild on Alpine-Linux (x64)
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
os:
- ubuntu-20.04
- macos-latest
- macos-14
- windows-2019
name: Prebuild on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -36,10 +37,6 @@ jobs:
run: |
${{ env.NODE_BUILD_CMD }} --arch ia32
${{ env.ELECTRON_BUILD_CMD }} --arch ia32
- if: matrix.os == 'macos-latest'
run: |
${{ env.NODE_BUILD_CMD }} --arch arm64
${{ env.ELECTRON_BUILD_CMD }} --arch arm64
prebuild-alpine-linux:
name: Prebuild on Alpine-Linux (x64)
Expand Down

0 comments on commit db79b8e

Please sign in to comment.