From b7da5e54a9ba9ff7ae0e71fb4397cda8c981d003 Mon Sep 17 00:00:00 2001 From: nukeop <12746779+nukeop@users.noreply.github.com> Date: Thu, 10 Aug 2023 02:03:09 +0200 Subject: [PATCH] Run each build command on its respective OS --- .github/workflows/CI.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b5542b4f1e..484077876a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -52,12 +52,16 @@ jobs: - run: npm test build: - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.platform.os }} needs: tests strategy: matrix: - os: ["ubuntu-latest", "macos-latest", "windows-latest"] - cmd: ["build:linux", "build:macos", "build:windows"] + platform: + [ + { os: "ubuntu-latest", cmd: "build:linux" }, + { os: "macos-11", cmd: "build:macos" }, + { os: "windows-latest", cmd: "build:windows" }, + ] steps: - name: Checkout code uses: actions/checkout@v2 @@ -89,7 +93,7 @@ jobs: echo "C:\Program Files\Git\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append echo "C:\Program Files\Git\mingw64\libexec\git-core" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - run: npm ci - - run: npm run ${{ matrix.cmd }} + - run: npm run ${{ matrix.platform.cmd }} shell: bash env: VERSION: ${{ steps.package-version.outputs.version}}