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 Jul 31, 2022
1 parent 61194ec commit 009be58
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -41,6 +41,10 @@ jobs:
node: 16
host: x86
target: x86
- os: macos-m1
node: 16
host: arm64
target: arm64
name: ${{ matrix.os }} (node=${{ matrix.node }}, host=${{ matrix.host }}, target=${{ matrix.target }})
steps:
- uses: actions/checkout@v3
Expand All @@ -49,6 +53,10 @@ jobs:
node-version: ${{ matrix.node }}
architecture: ${{ matrix.host }}

- name: Add yarn (self-hosted)
if: matrix.os == 'macos-m1'
run: npm install -g yarn

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
if: contains(matrix.os, 'windows')
Expand Down Expand Up @@ -81,6 +89,10 @@ jobs:
- name: Build binaries
run: yarn node-pre-gyp build --target_arch=${{ env.TARGET }}

- name: Sign binaries (MacOS)
if: matrix.os == 'macos-m1'
run: xattr lib/binding/*/*.node

- name: Print binary info
if: contains(matrix.os, 'ubuntu')
run: |
Expand Down

0 comments on commit 009be58

Please sign in to comment.