Skip to content

Commit e7b11cc

Browse files
committed
Add CI job to verify fuzz crate builds
Add a Fuzz job to the CI workflow that builds the fuzz crate on pull requests. This catches compilation errors without spending CI cycles on actual fuzzing (which provides minimal value in short PR runs). For reference, rust-bitcoin uses a similar approach: PRs only build, while a separate cron-daily-fuzz.yml runs targets for ~1 hour each. Closes #1313
1 parent 36882da commit e7b11cc

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,16 @@ jobs:
144144
with:
145145
name: mutants-incremental-cargo.out
146146
path: mutants.out
147+
148+
Fuzz:
149+
name: Fuzz build
150+
runs-on: ubuntu-latest
151+
steps:
152+
- name: "Checkout repo"
153+
uses: actions/checkout@v4
154+
- name: "Install nightly toolchain"
155+
uses: dtolnay/rust-toolchain@nightly
156+
- name: "Use cache"
157+
uses: Swatinem/rust-cache@v2
158+
- name: "Build fuzz targets"
159+
run: cd fuzz && cargo build

0 commit comments

Comments
 (0)