From 92ac7f7b1ad32a2f89f5de7c7640dd1efc05e3c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Wed, 13 Mar 2024 10:43:14 +0100 Subject: [PATCH] Update workflows --- .github/workflows/prebuild.yml | 22 ++++++++++++---------- .github/workflows/test.yml | 17 +++++++++-------- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml index c51987d..29d01c5 100644 --- a/.github/workflows/prebuild.yml +++ b/.github/workflows/prebuild.yml @@ -5,28 +5,30 @@ jobs: prebuild: strategy: matrix: - node: [20] - os: [ubuntu-22.04, macos-12, macos-14, windows-2022] include: - os: ubuntu-22.04 - name: linux-x64 + platform: linux + arch: x64 - os: macos-12 - name: darwin-x64 + platform: darwin + arch: x64 - os: macos-14 - name: darwin-arm64 + platform: darwin + arch: arm64 - os: windows-2022 - name: win32-x64 + platform: win32 + arch: x64 runs-on: ${{ matrix.os }} - name: ${{ matrix.name }} + name: ${{ matrix.platform }}-${{ matrix.arch }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node }} + node-version: lts/* - run: npm install -g bare-runtime bare-dev - run: npm install - - run: bare-dev install + - run: bare-dev install --platform ${{ matrix.platform }} --arch ${{ matrix.arch }} - uses: actions/upload-artifact@v4 with: - name: ${{ matrix.name }} + name: ${{ matrix.platform }}-${{ matrix.arch }} path: prebuilds/* diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f1f902e..06122e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,23 +10,24 @@ jobs: test: strategy: matrix: - node: [lts/*] - os: [ubuntu-latest, macos-latest, windows-latest] include: - os: ubuntu-latest - name: ubuntu + platform: linux + arch: x64 - os: macos-latest - name: macos + platform: darwin + arch: x64 - os: windows-latest - name: windows + platform: win32 + arch: x64 runs-on: ${{ matrix.os }} - name: ${{ matrix.name }} + name: ${{ matrix.platform }}-${{ matrix.arch }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node }} + node-version: lts/* - run: npm install -g bare-runtime bare-dev - run: npm install - - run: bare-dev install + - run: bare-dev install --platform ${{ matrix.platform }} --arch ${{ matrix.arch }} --debug - run: npm test