Skip to content

Commit 1081ab0

Browse files
authored
ci: Actually briefly run fuzzer and benches (#2559)
* ci: Actually briefly run fuzzer and benches Because just building them can hide errors. * --sanitizer none
1 parent 782cf68 commit 1081ab0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/fuzz-bench.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@ jobs:
3939
with:
4040
minimum-version: ${{ steps.nss-version.outputs.minimum }}
4141

42-
# Check that the fuzz and bench targets build
42+
# Check that the fuzz and bench targets work
4343
- if: ${{ matrix.check == 'fuzz' }}
4444
env:
4545
UBUNTU: ${{ startsWith(matrix.os, 'ubuntu') }}
4646
run: |
47-
# FIXME: https://github.com/rust-fuzz/cargo-fuzz/issues/384 for why no LTO.
48-
CARGO_PROFILE_RELEASE_LTO=false cargo fuzz build
47+
cargo fuzz build --dev
48+
for fuzzer in $(cargo fuzz list); do
49+
cargo fuzz run --dev --sanitizer none "$fuzzer" -- -runs=1
50+
done
4951
5052
- if: ${{ matrix.check == 'bench' }}
51-
run: cargo bench --features bench --no-run
53+
run: cargo bench --features bench --profile dev -- --profile-time 1

0 commit comments

Comments
 (0)