@@ -14,41 +14,31 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
16
16
steps :
17
- - uses : actions/checkout@v3
17
+ - uses : actions/checkout@v4
18
18
19
19
- name : Install stable
20
- uses : actions-rs/ toolchain@v1
20
+ uses : dtolnay/rust- toolchain@stable
21
21
with :
22
- profile : minimal
23
- toolchain : stable
24
- override : true
25
22
components : clippy, rustfmt
26
23
27
24
- name : Run rustfmt
28
- uses : actions-rs/cargo@v1
29
- with :
30
- command : fmt
31
- args : -- --check --verbose
25
+ run :
26
+ cargo fmt --all -- --check --verbose
32
27
33
- - name : Run cargo clippy
34
- uses : actions-rs/ clippy-check@v1
28
+ - name : Run clippy
29
+ uses : clechasseur/rs- clippy-check@v3
35
30
with :
36
- token : ${{ secrets.GITHUB_TOKEN }}
37
- args : --all-targets --tests --benches -- -D warnings
31
+ args : -- -D warnings --verbose
38
32
39
33
build-test :
40
34
41
35
runs-on : ubuntu-latest
42
36
43
37
steps :
44
- - uses : actions/checkout@v3
38
+ - uses : actions/checkout@v4
45
39
46
40
- name : Install Rust stable
47
- uses : actions-rs/toolchain@v1
48
- with :
49
- profile : minimal
50
- toolchain : stable
51
- override : true
41
+ uses : dtolnay/rust-toolchain@stable
52
42
53
43
- name : Build
54
44
run : cargo build --verbose --tests --benches
@@ -64,14 +54,10 @@ jobs:
64
54
runs-on : ubuntu-latest
65
55
66
56
steps :
67
- - uses : actions/checkout@v3
57
+ - uses : actions/checkout@v4
68
58
69
59
- name : Install Rust stable
70
- uses : actions-rs/toolchain@v1
71
- with :
72
- profile : minimal
73
- toolchain : stable
74
- override : true
60
+ uses : dtolnay/rust-toolchain@stable
75
61
76
62
- name : Install grcov
77
63
env :
109
95
--ignore-not-existing --ignore "/*" --ignore "../*" -o lcov.info
110
96
111
97
- name : Codecov upload
112
- uses : codecov/codecov-action@v3
98
+ uses : codecov/codecov-action@v4
113
99
with :
114
100
files : lcov.info
115
101
@@ -118,19 +104,11 @@ jobs:
118
104
runs-on : ubuntu-latest
119
105
120
106
steps :
121
- - uses : actions/checkout@v3
122
-
123
- - name : Install stable
124
- uses : actions-rs/toolchain@v1
125
- with :
126
- profile : minimal
127
- toolchain : stable
128
- override : true
107
+ - uses : actions/checkout@v4
129
108
130
109
- name : Install nightly
131
- uses : actions-rs/ toolchain@v1
110
+ uses : dtolnay/rust- toolchain@stable
132
111
with :
133
- profile : minimal
134
112
toolchain : nightly
135
113
136
114
- name : Install cargo-udeps
0 commit comments