-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (47 loc) · 1.4 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: Fuzz
on:
# schedule:
# - cron: 30 0 * * *
pull_request:
branches:
- "**"
workflow_dispatch:
inputs:
duration:
description: 'Duration of the fuzzing run in seconds'
required: true
default: "60"
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
fuzzing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install deps
run: |
DEBIAN_FRONTEND="noninteractive" sudo apt-get -y remove python3-lldb-14
sudo .github/workflows/scripts/llvm.sh 15
DEBIAN_FRONTEND="noninteractive" sudo apt-get -y install libfuzzer-15-dev
- name: Build
run: ./fuzzing/build.sh
- name: Run fuzzer
run: ./fuzzing/run.sh ${{ github.event.inputs.duration }}
- name: Log
if: ${{ always() }}
run: grep -v -f fuzzing/scripts/report-negative-patterns.txt fuzzing/fuzz-*.log
- name: Show coverage
run: ./fuzzing/scripts/show_coverage.sh 40
- name: Compress artifact
if: ${{ always() }}
run: tar -czvf fuzzing.tar.gz fuzzing/
- name: Artifact
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: fuzzing-data
path: fuzzing.tar.gz