@@ -13,32 +13,30 @@ defaults:
1313
1414jobs :
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