From d4570cbe636f4bb18b50603deff384985961f79b Mon Sep 17 00:00:00 2001 From: "Stefan M." Date: Tue, 13 Aug 2024 01:34:35 +0200 Subject: [PATCH] Use matrix build on CI (#39) * Use matrix build * Rename job --- .github/workflows/ci.yml | 66 ++++------------------------------------ 1 file changed, 6 insertions(+), 60 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd16d8c..195784e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,66 +44,12 @@ jobs: id: npm-ci-test run: npm run ci-test - test-action-linux: - name: GitHub Actions Test Linux - runs-on: ubuntu-latest - - steps: - - name: Checkout - id: checkout - uses: actions/checkout@v4 - - - name: Test Local Action - id: test-action - uses: ./ - with: - pkl-version: 0.26.0 - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Confirm download - run: pkl --version - - test-action-macos-amd64: - name: GitHub Actions Test MacOS amd64 - runs-on: macos-13 - - steps: - - name: Checkout - id: checkout - uses: actions/checkout@v4 - - - name: Test Local Action - id: test-action - uses: ./ - with: - pkl-version: 0.26.0 - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Confirm download - run: pkl --version - - test-action-macos-aarch64: - name: GitHub Actions Test MacOS aarch64 - runs-on: macos-14 - - steps: - - name: Checkout - id: checkout - uses: actions/checkout@v4 - - - name: Test Local Action - id: test-action - uses: ./ - with: - pkl-version: 0.26.0 - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Confirm download - run: pkl --version - - test-action-windows: - name: GitHub Actions Test Windows - runs-on: windows-latest + test-action: + strategy: + matrix: + # Right now macos-13 is amd64 while macos-14 is aarch64 (M1) + os: [ubuntu-latest, macos-13, macos-14, windows-latest] + runs-on: ${{ matrix.os }} steps: - name: Checkout