@@ -15,59 +15,52 @@ jobs:
15
15
uses : actions/checkout@v2
16
16
17
17
- name : Install stable toolchain
18
- uses : actions-rs/ toolchain@v1
18
+ uses : dtolnay/rust- toolchain@stable
19
19
with :
20
- profile : minimal
21
20
toolchain : stable
22
- override : true
23
21
24
- - name : Run cargo check
25
- uses : actions-rs/cargo@v1
26
- with :
27
- command : check
22
+ - name : Cache
23
+ uses : Swatinem/rust-cache@v2
24
+
25
+ - name : Check
26
+ run : cargo check --all-targets
28
27
29
28
test :
30
29
name : Test Suite
31
30
runs-on : ubuntu-latest
32
31
steps :
33
32
- name : Checkout sources
34
- uses : actions/checkout@v2
33
+ uses : actions/checkout@v3
35
34
36
35
- name : Install stable toolchain
37
- uses : actions-rs/ toolchain@v1
36
+ uses : dtolnay/rust- toolchain@stable
38
37
with :
39
- profile : minimal
40
38
toolchain : stable
41
- override : true
42
39
43
- - name : Run cargo test
44
- uses : actions-rs/cargo@v1
45
- with :
46
- command : test
40
+ - name : Cache
41
+ uses : Swatinem/rust-cache@v2
42
+
43
+ - name : Test
44
+ run : cargo test
47
45
48
46
lints :
49
47
name : Lints
50
48
runs-on : ubuntu-latest
51
49
steps :
52
50
- name : Checkout sources
53
- uses : actions/checkout@v2
51
+ uses : actions/checkout@v3
54
52
55
53
- name : Install stable toolchain
56
- uses : actions-rs/ toolchain@v1
54
+ uses : dtolnay/rust- toolchain@stable
57
55
with :
58
- profile : minimal
59
56
toolchain : stable
60
- override : true
61
57
components : rustfmt, clippy
62
58
63
- - name : Run cargo fmt
64
- uses : actions-rs/cargo@v1
65
- with :
66
- command : fmt
67
- args : --all -- --check
59
+ - name : Cache
60
+ uses : Swatinem/rust-cache@v2
61
+
62
+ - name : Fmt
63
+ run : cargo fmt --all -- --check
68
64
69
65
- name : Run cargo clippy
70
- uses : actions-rs/cargo@v1
71
- with :
72
- command : clippy
73
- args : -- -D warnings
66
+ run : cargo clippy -- -D warnings
0 commit comments