Skip to content

Commit

Permalink
Use matrix build on CI (#39)
Browse files Browse the repository at this point in the history
* Use matrix build

* Rename job
  • Loading branch information
StefMa authored Aug 12, 2024
1 parent 07e987d commit d4570cb
Showing 1 changed file with 6 additions and 60 deletions.
66 changes: 6 additions & 60 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4570cb

Please sign in to comment.