@@ -279,7 +279,7 @@ jobs:
279
279
toolchain : nightly
280
280
components : llvm-tools-preview
281
281
- name : Install cargo fuzz & rustfilt
282
- uses : taiki-e/install-action@56ab7930c591507f833cbaed864d201386d518a8
282
+ uses : taiki-e/install-action@a48a50298f98c47e46a957ae6f82c44cc4878e42 # v2.49.47
283
283
with :
284
284
tool : cargo-fuzz,rustfilt
285
285
- name : Download custom decompression corpus
@@ -288,11 +288,21 @@ jobs:
288
288
wget https://github.com/trifectatechfoundation/compression-corpus/releases/download/2025-04-14-103007/gzip-files.zip
289
289
unzip gzip-files.zip -d gzip-files
290
290
- name : Run `cargo fuzz`
291
+ env :
292
+ RUST_BACKTRACE : " 1"
293
+ # prevents `cargo fuzz coverage` from rebuilding everything
294
+ RUSTFLAGS : " -C instrument-coverage"
291
295
run : |
292
- cargo fuzz run ${{matrix.features}} ${{matrix.fuzz_target}} ${{matrix.corpus}} -- -max_total_time=10
296
+ cargo fuzz run --target $(rustc --print host-tuple) ${{matrix.features}} ${{matrix.fuzz_target}} ${{matrix.corpus}} -- -max_total_time=10
293
297
- name : Fuzz codecov
294
298
run : |
295
- cargo fuzz coverage ${{matrix.features}} ${{matrix.fuzz_target}} ${{matrix.corpus}}
299
+ cargo fuzz coverage --target $(rustc --print host-tuple) ${{matrix.features}} ${{matrix.fuzz_target}} ${{matrix.corpus}}
300
+ ls target
301
+ ls target/x86_64-unknown-linux-gnu
302
+ ls target/x86_64-unknown-linux-gnu/coverage
303
+ ls target/x86_64-unknown-linux-gnu/coverage/x86_64-unknown-linux-gnu
304
+ ls target/x86_64-unknown-linux-gnu/coverage/x86_64-unknown-linux-gnu/release
305
+ ls target/x86_64-unknown-linux-gnu/coverage/x86_64-unknown-linux-gnu/release/uncompress
296
306
$(rustc --print sysroot)/lib/rustlib/$(rustc --print host-tuple)/bin/llvm-cov export -Xdemangler=rustfilt \
297
307
target/$(rustc --print host-tuple)/coverage/$(rustc --print host-tuple)/release/${{matrix.fuzz_target}} \
298
308
-instr-profile=fuzz/coverage/${{matrix.fuzz_target}}/coverage.profdata \
0 commit comments