Skip to content

Commit

Permalink
WIP: added Darwin arm64 binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellockyer committed Apr 28, 2022
1 parent a235752 commit 0dedf4a
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,11 @@ jobs:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
host:
- x64
target:
- x64
node:
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
include:
- os: windows-latest
- os: macos-latest
node: 16
host: x86
target: x86
host: x64
target: arm64
name: ${{ matrix.os }} (node=${{ matrix.node }}, host=${{ matrix.host }}, target=${{ matrix.target }})
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -81,6 +63,10 @@ jobs:
- name: Build binaries
run: yarn node-pre-gyp build --target_arch=${{ env.TARGET }}

- name: Codesign Darwin ARM64 binaries
if: contains(matrix.os, 'macos') && matrix.target == 'arm64'
run: codesign -s - -f -vvvvvv lib/binding/napi-v*/*

- name: Print binary info
if: contains(matrix.os, 'ubuntu')
run: |
Expand All @@ -92,6 +78,7 @@ jobs:
- name: Run tests
run: yarn test
if: matrix.target != 'arm64'

- name: Package prebuilt binaries
run: yarn node-pre-gyp package --target_arch=${{ env.TARGET }}
Expand Down

0 comments on commit 0dedf4a

Please sign in to comment.