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 61087a7 commit e145caa
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/ci.yml
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: x64
target: x86
target: arm64
name: ${{ matrix.os }} (node=${{ matrix.node }}, host=${{ matrix.host }}, target=${{ matrix.target }})
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -74,6 +56,10 @@ jobs:
- name: Build binaries
run: yarn node-pre-gyp build --target_arch=${{ matrix.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 @@ -85,6 +71,7 @@ jobs:
- name: Run tests
run: yarn test
if: matrix.target != 'arm64'

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

0 comments on commit e145caa

Please sign in to comment.