File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -177,15 +177,22 @@ jobs:
177
177
uses : dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
178
178
with :
179
179
toolchain : stable
180
- components : clippy
180
+ components : clippy, rustfmt
181
181
targets : ${{matrix.target}}
182
182
- name : Rust cache
183
183
uses : Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8
184
184
with :
185
185
shared-key : " stable-${{matrix.target}}"
186
186
187
- - name : Run clippy
188
- run : cargo clippy --target ${{matrix.target}} ${{matrix.features}} --workspace --all-targets -- -D warnings
187
+ - name : Run rustfmt and clippy
188
+ run : |
189
+ cargo fmt --all --check
190
+ cargo clippy --target ${{matrix.target}} ${{matrix.features}} --workspace --all-targets -- -D warnings
191
+ - name : Run rustfmt and clippy (cdylib)
192
+ working-directory : libz-rs-sys-cdylib
193
+ run : |
194
+ cargo fmt --all --check
195
+ cargo clippy --target ${{matrix.target}} ${{matrix.features}} --workspace --all-targets -- -D warnings
189
196
- name : Run clippy (fuzzers)
190
197
if : ${{ !contains(matrix.features, 'gz') }}
191
198
run : cargo clippy --target ${{matrix.target}} ${{matrix.features}} --manifest-path ./fuzz/Cargo.toml --all-targets -- -D warnings
@@ -265,7 +272,7 @@ jobs:
265
272
done
266
273
267
274
fuzz-code-coverage :
268
- name : Fuzz with code coverage
275
+ name : Fuzz with code coverage
269
276
runs-on : ubuntu-latest
270
277
strategy :
271
278
matrix :
You can’t perform that action at this time.
0 commit comments