2022-11-01 12:54:46 -07:00
|
|
|
name: Fuzz
|
2022-11-01 12:45:29 -07:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2022-11-06 19:54:24 -08:00
|
|
|
- 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
|
2022-11-01 12:45:29 -07:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose
|
2022-11-06 19:15:30 -08:00
|
|
|
- name: Cache fuzzy corpus
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: fuzz/corpus
|
2022-11-06 19:41:42 -08:00
|
|
|
key: fuzz-corpus-${{ github.run_id }}
|
|
|
|
restore-keys: |
|
|
|
|
fuzz-corpus-
|
2022-11-06 19:27:35 -08:00
|
|
|
- name: fuzzy common
|
2022-11-05 14:25:34 -07:00
|
|
|
run: cargo fuzz run common -- -max_total_time=60
|
2022-11-06 19:27:35 -08:00
|
|
|
- name: fuzzy notes
|
2022-11-01 12:45:29 -07:00
|
|
|
run: cargo fuzz run notes -- -max_total_time=60
|
2022-11-06 19:27:35 -08:00
|
|
|
- name: fuzzy symver
|
2022-11-01 12:45:29 -07:00
|
|
|
run: cargo fuzz run symver -- -max_total_time=60
|
2022-11-06 19:27:35 -08:00
|
|
|
- name: fuzzy symbol_table
|
2022-11-01 12:45:29 -07:00
|
|
|
run: cargo fuzz run symbol_table -- -max_total_time=60
|
2022-11-06 19:27:35 -08:00
|
|
|
- name: fuzzy stream
|
|
|
|
run: cargo fuzz run stream -- -max_total_time=60
|