Skip to content

Commit

Permalink
Merge pull request #36 from SoftbearStudios/fuzz_in_ci
Browse files Browse the repository at this point in the history
Run fuzzer in CI.
  • Loading branch information
finnbear authored Sep 12, 2024
2 parents 2350158 + 9e2cf6a commit a575e1c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ env:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -49,3 +47,18 @@ jobs:
run: rustup target add mips64-unknown-linux-gnuabi64 && cargo miri setup --target mips64-unknown-linux-gnuabi64
- name: Test (miri big-endian)
run: cargo miri test --target mips64-unknown-linux-gnuabi64
fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Install cargo-fuzz
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-fuzz
locked: false
- name: Fuzz
run: RUST_BACKTRACE=1 cargo fuzz run fuzz -- -max_total_time=900
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ features = [ "derive", "serde", "std" ]
# TODO halfs speed of benches_borrowed::bench_bitcode_decode
#[profile.bench]
#lto = true

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }

0 comments on commit a575e1c

Please sign in to comment.