From e145caa1d78a9764b2edfdc1f1ec34e199c41d68 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 27 Apr 2022 16:47:00 +0100 Subject: [PATCH] WIP: added Darwin arm64 binaries --- .github/workflows/ci.yml | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf54a21da..4414e564a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: | @@ -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 }}