@@ -10,12 +10,13 @@ jobs:
10
10
name : CI
11
11
runs-on : ubuntu-latest
12
12
needs : [check, ci-linux, ci-clippy, ci-serde]
13
+ if : always()
13
14
steps :
14
15
- name : Done
15
- run : exit 0
16
+ run : jq -- exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
16
17
17
18
check :
18
- name : Cargo check
19
+ name : Cargo check / clippy
19
20
runs-on : ubuntu-latest
20
21
strategy :
21
22
matrix :
@@ -24,22 +25,18 @@ jobs:
24
25
steps :
25
26
- uses : actions/checkout@v3
26
27
27
- - uses : actions-rs/ toolchain@v1
28
+ - uses : dtolnay/rust- toolchain@master
28
29
with :
29
- profile : minimal
30
30
toolchain : stable
31
- override : true
32
- target : ${{ matrix.TARGET }}
31
+ targets : ${{ matrix.TARGET }}
32
+ components : clippy
33
33
34
34
- name : Cache Dependencies
35
35
uses : Swatinem/rust-cache@v2
36
36
with :
37
37
key : ${{ matrix.TARGET }}
38
38
39
- - uses : actions-rs/cargo@v1
40
- with :
41
- command : check
42
- args : --target ${{ matrix.TARGET }}
39
+ - run : cargo clippy --target ${{ matrix.TARGET }}
43
40
44
41
ci-linux :
45
42
runs-on : ubuntu-latest
88
85
steps :
89
86
- uses : actions/checkout@v3
90
87
91
- - uses : actions-rs/ toolchain@v1
88
+ - uses : dtolnay/rust- toolchain@master
92
89
with :
93
- profile : minimal
94
90
toolchain : ${{ matrix.rust }}
95
- override : true
96
91
97
92
- name : Cache
98
93
uses : Swatinem/rust-cache@v2
@@ -114,11 +109,9 @@ jobs:
114
109
steps :
115
110
- uses : actions/checkout@v3
116
111
117
- - uses : actions-rs/ toolchain@v1
112
+ - uses : dtolnay/rust- toolchain@master
118
113
with :
119
- profile : minimal
120
114
toolchain : stable
121
- override : true
122
115
123
116
- name : Cache
124
117
uses : Swatinem/rust-cache@v2
@@ -139,11 +132,9 @@ jobs:
139
132
steps :
140
133
- uses : actions/checkout@v3
141
134
142
- - uses : actions-rs/ toolchain@v1
135
+ - uses : dtolnay/rust- toolchain@master
143
136
with :
144
- profile : minimal
145
137
toolchain : stable
146
- override : true
147
138
148
139
- name : Cache
149
140
uses : Swatinem/rust-cache@v2
@@ -166,17 +157,12 @@ jobs:
166
157
steps :
167
158
- uses : actions/checkout@v3
168
159
169
- - uses : actions-rs/ toolchain@v1
160
+ - uses : dtolnay/rust- toolchain@master
170
161
with :
171
- profile : minimal
172
162
toolchain : stable
173
- override : true
174
163
components : rustfmt
175
164
176
165
- name : Cache Dependencies
177
166
uses : Swatinem/rust-cache@v2
178
167
179
- - uses : actions-rs/cargo@v1
180
- with :
181
- command : fmt
182
- args : --all -- --check
168
+ - run : cargo fmt --all -- --check
0 commit comments