Skip to content

Commit

Permalink
ci: replace square test job matrix with a rectangular one
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Jun 19, 2024
1 parent 1768865 commit 04e4b18
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,18 @@ env:
RUSTFLAGS: -D warnings
jobs:
test:
runs-on: ${{ matrix.platform }}
name: "${{ matrix.platform }} ${{ matrix.toolchain }}"
runs-on: ${{ matrix.platform.os }}
name: "${{ matrix.platform.os }} ${{ matrix.platform.rs }}"
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
toolchain: [1.78.0, 1.76.0]
platform: [{os: ubuntu-latest, rs: 1.76.0}, {os: ubuntu-latest, rs: stable}, {os: macos-latest, rs: 1.76.0}, {os: macos-latest, rs: 1.78.0}]
steps:
- uses: actions/checkout@v3
- name: "${{ matrix.toolchain }} with rustfmt, and wasm32"
- name: "${{ matrix.platform.rs }} with rustfmt, and wasm32"
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
toolchain: ${{ matrix.platform.rs }}
default: true
target: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v1
Expand Down

0 comments on commit 04e4b18

Please sign in to comment.