From 5b1b30bdfc4539dc579faf7ebc5ebb3dfe364a29 Mon Sep 17 00:00:00 2001 From: Matthew McEachen Date: Tue, 17 Dec 2024 11:35:44 -0800 Subject: [PATCH] Update GitHub Actions workflow to use Ubuntu 22.04 and adjust dependency installation order --- .github/workflows/build.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30664c7..d72ff80 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -113,7 +113,7 @@ jobs: publish: if: ${{ github.event_name == 'workflow_dispatch' }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 needs: [test-matrix, test-ubuntu, test-alpine] steps: - uses: actions/checkout@v4 @@ -121,14 +121,16 @@ jobs: with: node-version: 18 - - name: Install dependencies - run: npm ci - + # We need to download the prebuilds **before** installing dependencies, + # or `npm ci` will recompile the native code. - name: Download all artifacts uses: actions/download-artifact@v4 with: path: ./prebuilds - merge-multiple: true # < because prebuilds/linux-x64/ will contain both a glibc and musl build + merge-multiple: true + + - name: Install dependencies + run: npm ci - name: List ./prebuilds/ run: ls -laR ./prebuilds