@@ -12,70 +12,49 @@ jobs:
12
12
- stable
13
13
- 1.60.0
14
14
steps :
15
+ - uses : r7kamura/rust-problem-matchers@v1
16
+
15
17
- name : Checkout
16
- uses : actions/checkout@v2
18
+ uses : actions/checkout@v4
17
19
18
20
- 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 }}
24
24
25
25
- name : Install rustfmt + clippy
26
26
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
33
32
34
33
- name : Check Fmt
35
34
if : matrix.rust == 'stable'
36
- uses : actions-rs/cargo@v1
37
- with :
38
- command : fmt
39
- args : -- --check
35
+ run : cargo fmt --check
40
36
41
37
- name : Check Lints (all features)
42
38
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 }}
47
40
48
41
- name : Test (default features)
49
- uses : actions-rs/cargo@v1
50
- with :
51
- command : test
42
+ run : cargo test
52
43
53
44
- 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
58
46
59
47
- name : Test (schema features subset)
60
48
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"
65
50
66
51
- name : Test (rand features subset)
67
52
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"
72
54
73
55
- name : Test (all features)
74
56
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 }}
79
58
80
59
env :
81
60
all_features : " arbitrary,bytemuck,rand,randtest,serde,schemars,proptest,rkyv,rkyv_ck,speedy"
0 commit comments