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}}