Skip to content

Commit

Permalink
test: Add fuzzing to CI
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
  • Loading branch information
Stranger6667 committed Sep 16, 2024
1 parent f9afda4 commit 8f3d650
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,23 @@ jobs:
- uses: taiki-e/install-action@cargo-hack

- run: cargo hack check --feature-powerset

fuzz:
name: Fuzzing ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
target: ["compile"]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: dtolnay/rust-toolchain@nightly

- uses: Swatinem/rust-cache@v2

- run: cargo install cargo-fuzz

- run: cargo +nightly fuzz run --release ${{ matrix.target }} fuzz/seeds/${{ matrix.target }} -- -dict=fuzz/dict -max_total_time=60

0 comments on commit 8f3d650

Please sign in to comment.