-
Notifications
You must be signed in to change notification settings - Fork 50
40 lines (35 loc) · 941 Bytes
/
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
name: Nightly Cargo Fuzz
on:
schedule:
- cron: "0 0 * * *" # Runs every day at midnight
workflow_dispatch:
pull_request:
types:
- synchronize
- opened
- reopened
jobs:
cargo-fuzz:
runs-on: ubuntu-latest
timeout-minutes: 180
env:
# Run each fuzz target for 10 minutes
FUZZ_TIMEOUT: 600 # Seconds
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust and cargo-fuzz
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rust-src
- run: rustup install nightly
- run: rustup default nightly
- run: cargo install cargo-fuzz
- name: Build fuzz targets
run: cargo fuzz build
- name: Run Cargo Fuzz
run: |
cargo fuzz list | while read target; do
cargo fuzz run "$target" -- -max_total_time=$FUZZ_TIMEOUT
done