Skip to content

Commit e88f3d4

Browse files
committed
merge with matrix
1 parent 26a5399 commit e88f3d4

2 files changed

Lines changed: 16 additions & 18 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,30 @@ defaults:
1313

1414
jobs:
1515
test:
16-
name: Test
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: actions/checkout@v6
20-
with: { submodules: recursive }
21-
- if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
22-
uses: Swatinem/rust-cache@v2
23-
- uses: taiki-e/install-action@v2
24-
with: { tool: 'just,cargo-binstall' }
25-
- run: just ci-test
26-
27-
test-macos:
28-
name: Test (macOS)
29-
runs-on: macos-latest
16+
name: Test on ${{ matrix.os }}
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: true
20+
matrix:
21+
include:
22+
- os: ubuntu-latest
23+
- os: macos-latest
3024
steps:
3125
- uses: actions/checkout@v6
3226
with: { submodules: recursive }
3327
- if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
3428
uses: Swatinem/rust-cache@v2
3529
- uses: taiki-e/install-action@v2
3630
with: { tool: 'just,cargo-binstall' }
37-
- run: brew install simde
38-
- run: just ci-test
31+
- if: runner.os == 'macOS'
32+
run: brew install simde
33+
- if: runner.os == 'macOS'
34+
run: just ci-test
3935
env:
4036
CXXFLAGS: -I/opt/homebrew/include
4137
CFLAGS: -I/opt/homebrew/include
38+
- if: runner.os == 'Linux'
39+
run: just ci-test
4240

4341
test-nightly:
4442
name: Nightly-specific tests
@@ -134,7 +132,7 @@ jobs:
134132
# This job checks if any of the previous jobs failed or were canceled.
135133
# This approach also allows some jobs to be skipped if they are not needed.
136134
ci-passed:
137-
needs: [ test, test-macos, test-nightly, test-msrv, fuzz ]
135+
needs: [ test, test-nightly, test-msrv, fuzz ]
138136
if: always()
139137
runs-on: ubuntu-latest
140138
steps:

0 commit comments

Comments
 (0)