File tree Expand file tree Collapse file tree 1 file changed +19
-13
lines changed
Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -25,30 +25,36 @@ concurrency:
2525 cancel-in-progress : ${{ github.ref_name != 'main' }}
2626
2727jobs :
28- test :
29- name : Test
30- strategy :
31- fail-fast : false
32- matrix :
33- include :
34- # - os: windows-latest # See `test-windows` job below
35- - os : ubuntu-latest
36- - os : macos-latest
37- runs-on : ${{ matrix.os }}
28+ test-ubuntu :
29+ name : Test Linux
30+ runs-on : ubuntu-latest
31+ steps :
32+ - uses : taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
33+ - uses : oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0
34+ with :
35+ save-cache : ${{ github.ref_name == 'main' }}
36+ cache-key : warm
37+ - run : cargo ck
38+ - run : cargo test --all-features
39+ - run : git diff --exit-code # Must commit everything
40+
41+ # Separate job to save a job on PRs
42+ test-mac :
43+ name : Test Mac
44+ runs-on : macos-latest
45+ if : ${{ github.ref_name == 'main' }}
3846 steps :
3947 - uses : taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
4048 - uses : oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0
4149 with :
42- # warm cache factory for all other CI jobs
43- # cache `target` directory to avoid download crates
4450 save-cache : ${{ github.ref_name == 'main' }}
4551 cache-key : warm
4652 - run : cargo ck
4753 - run : cargo test --all-features
4854 - run : git diff --exit-code # Must commit everything
4955
5056 test-windows :
51- name : Test (windows-latest)
57+ name : Test Windows
5258 if : ${{ github.ref_name == 'main' }}
5359 runs-on : windows-latest
5460 steps :
You can’t perform that action at this time.
0 commit comments