-
-
Notifications
You must be signed in to change notification settings - Fork 97
37 lines (30 loc) · 1 KB
/
daily.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
name: Daily
on:
schedule:
- cron: '0 0 * * *' # Run daily at midnight UTC
workflow_dispatch:
jobs:
fuzz:
name: Fuzzing ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
target: ["builder", "validation", "referencing"]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- name: Download previous corpus
uses: actions/cache@v4
with:
path: ./fuzz/corpus/${{ matrix.target }}
key: ${{ runner.os }}-corpus-${{ matrix.target }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-corpus-${{ matrix.target }}-
- run: cargo install cargo-fuzz --force
- run: |
mkdir -p fuzz/corpus/${{ matrix.target }}
cargo +nightly fuzz run --release ${{ matrix.target }} fuzz/corpus/${{ matrix.target }} fuzz/seeds -- -dict=fuzz/dict -max_total_time=10800