-
Notifications
You must be signed in to change notification settings - Fork 46
45 lines (40 loc) · 1.16 KB
/
fuzz.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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