name: Fuzz on: push: branches: [ "master" ] pull_request: branches: [ "master" ] env: CARGO_TERM_COLOR: always jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install nightly Rust shell: bash run: | curl -sSL https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain=nightly export PATH="$HOME/.cargo/bin:$PATH" echo "$HOME/.cargo/bin" >> $GITHUB_PATH - name: Install cargo fuzz run: cargo install cargo-fuzz - name: Build run: cargo build --verbose - name: Cache fuzzy corpus uses: actions/cache@v3 with: path: fuzz/corpus key: fuzz-corpus-${{ github.run_id }} restore-keys: | fuzz-corpus- - name: fuzzy common run: cargo fuzz run common -- -max_total_time=60 - name: fuzzy notes run: cargo fuzz run notes -- -max_total_time=60 - name: fuzzy symver run: cargo fuzz run symver -- -max_total_time=60 - name: fuzzy symbol_table run: cargo fuzz run symbol_table -- -max_total_time=60 - name: fuzzy stream run: cargo fuzz run stream -- -max_total_time=60