From ae80ae10fc33d6c28e5b3de15b7bc3ae8c654656 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sat, 22 Jan 2022 09:30:08 +0000 Subject: [PATCH] CI: add Rosetta-emulated x64 --- .github/workflows/ci-darwin-arm64v8.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-darwin-arm64v8.yml b/.github/workflows/ci-darwin-arm64v8.yml index ef95728a8..644bd5580 100644 --- a/.github/workflows/ci-darwin-arm64v8.yml +++ b/.github/workflows/ci-darwin-arm64v8.yml @@ -5,6 +5,15 @@ on: jobs: CI: runs-on: macos-m1 + strategy: + fail-fast: false + matrix: + include: + - nodejs_version: 12 + nodejs_architecture: x64 + - nodejs_version: 16 + nodejs_architecture: arm64 + prebuild: true defaults: run: shell: /usr/bin/arch -arch arm64e /bin/bash -l {0} @@ -12,8 +21,8 @@ jobs: - name: Dependencies uses: actions/setup-node@v2 with: - node-version: 16 - architecture: arm64 + node-version: ${{ matrix.nodejs_version }} + architecture: ${{ matrix.nodejs_architecture }} - name: Checkout uses: actions/checkout@v2 - name: Install @@ -21,7 +30,7 @@ jobs: - name: Test run: npm test - name: Prebuild - if: startsWith(github.ref, 'refs/tags/') + if: matrix.prebuild && startsWith(github.ref, 'refs/tags/') env: prebuild_upload: ${{ secrets.GITHUB_TOKEN }} run: npx prebuild --runtime napi --target 5