-
Notifications
You must be signed in to change notification settings - Fork 37
57 lines (48 loc) · 1.21 KB
/
fuzz.yml
File metadata and controls
57 lines (48 loc) · 1.21 KB
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
56
57
name: Fuzz
permissions:
contents: read
on:
push:
branches:
- master
pull_request:
schedule:
# Daily at 03:00 UTC
- cron: '0 3 * * *'
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CLICOLOR: 1
CI: 1
CARGO_FUZZ_VERSION: 0.13.1
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
fuzz:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- patch_from_str
- patch_from_bytes
- patch_set_gitdiff
- patch_set_unidiff
- patch_set_gitdiff_bytes
- patch_set_unidiff_bytes
steps:
- uses: actions/checkout@v6
- run: rustup toolchain install nightly
- run: rustup default nightly
- uses: dtolnay/install@cargo-fuzz
- run: cargo fuzz build ${{ matrix.target }}
- name: Run fuzzer
run: cargo fuzz run ${{ matrix.target }} -- -max_total_time=$TIME
env:
TIME: ${{ github.event_name == 'schedule' && '600' || '30' }}
- uses: actions/upload-artifact@v7
if: failure()
with:
name: fuzz-artifacts-${{ matrix.target }}-${{ github.sha }}
path: fuzz/artifacts/