-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (53 loc) · 1.69 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
46
47
48
49
50
51
52
53
54
55
name: libFuzzer
on:
push:
pull_request:
schedule:
- cron: "8 0 * * *"
jobs:
fuzz:
name: libFuzzer
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- inline_array
- ring_buffer
- sized_chunk
- sparse_chunk
steps:
- uses: actions/checkout@v2
name: Checkout project
- uses: actions/cache@v1
name: Cache corpus
id: cache-corpus
with:
path: fuzz/corpus/${{ matrix.target }}
key: fuzz-corpus-${{ matrix.target }}-${{ github.run_id }}
restore-keys: |
fuzz-corpus-${{ matrix.target }}-
- uses: actions-rs/toolchain@v1
name: Install Rust
with:
profile: minimal
toolchain: nightly
override: true
- uses: actions-rs/install@v0.1
name: Install cargo-fuzz
with:
crate: cargo-fuzz
version: latest
use-tool-cache: true
- name: Fuzz for 10 minutes
run: cargo fuzz run ${{ matrix.target }} -- -max_total_time=600 # seconds
- uses: actions/upload-artifact@v1
name: Publish artifacts
with:
name: fuzz-artifacts
path: fuzz/artifacts
- uses: actions/upload-artifact@v2
name: Publish corpus
with:
name: fuzz-corpus
path: fuzz/corpus