@@ -12,70 +12,49 @@ jobs:
1212 - stable
1313 - 1.60.0
1414 steps :
15+ - uses : r7kamura/rust-problem-matchers@v1
16+
1517 - name : Checkout
16- uses : actions/checkout@v2
18+ uses : actions/checkout@v4
1719
1820 - name : Install toolchain
19- uses : actions-rs/toolchain@v1
20- with :
21- profile : minimal
22- toolchain : ${{ matrix.rust }}
23- override : true
21+ run : |
22+ rustup toolchain install ${{ matrix.rust }} --profile=minimal
23+ rustup override set ${{ matrix.rust }}
2424
2525 - name : Install rustfmt + clippy
2626 if : matrix.rust == 'stable'
27- uses : actions-rs/toolchain@v1
28- with :
29- profile : minimal
30- toolchain : ${{ matrix.rust }}
31- override : true
32- components : rustfmt, clippy
27+ run : |
28+ # remove non-rustup-managed versions already present in default image
29+ rm -f /home/runner/.cargo/bin/{rustfmt,cargo-fmt}
30+
31+ rustup toolchain install ${{ matrix.rust }} --profile=minimal --component=clippy,rustfmt
3332
3433 - name : Check Fmt
3534 if : matrix.rust == 'stable'
36- uses : actions-rs/cargo@v1
37- with :
38- command : fmt
39- args : -- --check
35+ run : cargo fmt --check
4036
4137 - name : Check Lints (all features)
4238 if : matrix.rust == 'stable'
43- uses : actions-rs/cargo@v1
44- with :
45- command : clippy
46- args : --tests --features ${{ env.all_features }}
39+ run : cargo clippy --tests --features ${{ env.all_features }}
4740
4841 - name : Test (default features)
49- uses : actions-rs/cargo@v1
50- with :
51- command : test
42+ run : cargo test
5243
5344 - name : Test (no default features)
54- uses : actions-rs/cargo@v1
55- with :
56- command : test
57- args : --no-default-features
45+ run : cargo test --no-default-features
5846
5947 - name : Test (schema features subset)
6048 if : matrix.rust == 'stable'
61- uses : actions-rs/cargo@v1
62- with :
63- command : test
64- args : --features "std,schemars"
49+ run : cargo test --features "std,schemars"
6550
6651 - name : Test (rand features subset)
6752 if : matrix.rust == 'stable'
68- uses : actions-rs/cargo@v1
69- with :
70- command : test
71- args : --features "rand,randtest"
53+ run : cargo test --features "rand,randtest"
7254
7355 - name : Test (all features)
7456 if : matrix.rust == 'stable'
75- uses : actions-rs/cargo@v1
76- with :
77- command : test
78- args : --features ${{ env.all_features }}
57+ run : cargo test --features ${{ env.all_features }}
7958
8059env :
8160 all_features : " arbitrary,bytemuck,rand,randtest,serde,schemars,proptest,rkyv,rkyv_ck,speedy"
0 commit comments