Skip to content

Commit b4e74dd

Browse files
committed
Merge #272: fix: enable fuzzing with cargo-fuzz
f7af079 fix: enable fuzzing with cargo-fuzz (metalurgical) Pull request description: This enables fuzzing of targets using cargo-fuzz on github actions where it previously was ignored. Changes: - Install cargo fuzz - Run cargo fuzz for each target Can be updated to use mapfile or parameterized in future. ACKs for top commit: apoelstra: ACK f7af079; successfully ran local tests; simple and straightforward KyrylR: ACK f7af079; successfully ran local tests; code review Tree-SHA512: 5176699913aa31d15ba1d8b05cc6f831043705ff5980ddd09396737531eee088c2c0c868ddabdb3f869618995e2cb77e3cb0bc34a9baebc7b61be4a5a8603d83
2 parents 4203177 + f7af079 commit b4e74dd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,14 @@ jobs:
189189
run: |
190190
cargo check --manifest-path=fuzz/Cargo.toml
191191
192+
- name: "Install cargo-fuzz"
193+
run: |
194+
cargo install cargo-fuzz --locked
195+
196+
- name: "Run cargo-fuzz"
197+
run: |
198+
set -euo pipefail
199+
cargo fuzz list --fuzz-dir fuzz | while read -r target; do
200+
echo "fuzzing $target"
201+
cargo fuzz run --fuzz-dir fuzz "$target" -- -runs=1
202+
done

0 commit comments

Comments
 (0)