@@ -10,12 +10,13 @@ jobs:
1010 name : CI
1111 runs-on : ubuntu-latest
1212 needs : [check, ci-linux, ci-clippy, ci-serde]
13+ if : always()
1314 steps :
1415 - name : Done
15- run : exit 0
16+ run : jq -- exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
1617
1718 check :
18- name : Cargo check
19+ name : Cargo check / clippy
1920 runs-on : ubuntu-latest
2021 strategy :
2122 matrix :
@@ -24,22 +25,18 @@ jobs:
2425 steps :
2526 - uses : actions/checkout@v3
2627
27- - uses : actions-rs/ toolchain@v1
28+ - uses : dtolnay/rust- toolchain@master
2829 with :
29- profile : minimal
3030 toolchain : stable
31- override : true
32- target : ${{ matrix.TARGET }}
31+ targets : ${{ matrix.TARGET }}
32+ components : clippy
3333
3434 - name : Cache Dependencies
3535 uses : Swatinem/rust-cache@v2
3636 with :
3737 key : ${{ matrix.TARGET }}
3838
39- - uses : actions-rs/cargo@v1
40- with :
41- command : check
42- args : --target ${{ matrix.TARGET }}
39+ - run : cargo clippy --target ${{ matrix.TARGET }}
4340
4441 ci-linux :
4542 runs-on : ubuntu-latest
8885 steps :
8986 - uses : actions/checkout@v3
9087
91- - uses : actions-rs/ toolchain@v1
88+ - uses : dtolnay/rust- toolchain@master
9289 with :
93- profile : minimal
9490 toolchain : ${{ matrix.rust }}
95- override : true
9691
9792 - name : Cache
9893 uses : Swatinem/rust-cache@v2
@@ -114,11 +109,9 @@ jobs:
114109 steps :
115110 - uses : actions/checkout@v3
116111
117- - uses : actions-rs/ toolchain@v1
112+ - uses : dtolnay/rust- toolchain@master
118113 with :
119- profile : minimal
120114 toolchain : stable
121- override : true
122115
123116 - name : Cache
124117 uses : Swatinem/rust-cache@v2
@@ -139,11 +132,9 @@ jobs:
139132 steps :
140133 - uses : actions/checkout@v3
141134
142- - uses : actions-rs/ toolchain@v1
135+ - uses : dtolnay/rust- toolchain@master
143136 with :
144- profile : minimal
145137 toolchain : stable
146- override : true
147138
148139 - name : Cache
149140 uses : Swatinem/rust-cache@v2
@@ -166,17 +157,12 @@ jobs:
166157 steps :
167158 - uses : actions/checkout@v3
168159
169- - uses : actions-rs/ toolchain@v1
160+ - uses : dtolnay/rust- toolchain@master
170161 with :
171- profile : minimal
172162 toolchain : stable
173- override : true
174163 components : rustfmt
175164
176165 - name : Cache Dependencies
177166 uses : Swatinem/rust-cache@v2
178167
179- - uses : actions-rs/cargo@v1
180- with :
181- command : fmt
182- args : --all -- --check
168+ - run : cargo fmt --all -- --check
0 commit comments