Skip to content

Commit

Permalink
ci: use matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
yfblock committed May 4, 2024
1 parent 6a9780e commit 68989c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ on:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [x86_64, riscv64, aarch64, loongarch64]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: Test riscv64
run: cd example && make ARCH=riscv64 build
- name: Test aarch64
run: cd example && make ARCH=aarch64 build
- name: Test x86_64
run: cd example && make ARCH=x86_64 build
- name: Test loongarch64
run: cd example && make ARCH=loongarch64 build
- name: Test ${{ matrix.arch }}
run: cd example && make ARCH=${{ matrix.arch }} build
4 changes: 2 additions & 2 deletions example/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 68989c6

Please sign in to comment.