-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (28 loc) · 959 Bytes
/
fuzz.yml
File metadata and controls
37 lines (28 loc) · 959 Bytes
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: Fuzz
on:
push:
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Debug
jobs:
Fuzz:
runs-on: ubuntu-latest
strategy:
matrix:
test: [ "TFChannelRange_read", "TFCompressionBlock_read", "TFHeader_read", "TFVarHeader_read" ]
steps:
- uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=clang -DENABLE_FUZZING=TRUE
- name: Build
run: cmake --build ${{github.workspace}}/build --target fuzz_${{matrix.test}} --config ${{env.BUILD_TYPE}}
- name: Fuzz
working-directory: ${{github.workspace}}/build
run: |
mkdir -p corpus
./fuzz_${{matrix.test}} -max_total_time=30 -print_final_stats=1 corpus
- uses: actions/upload-artifact@v4
with:
name: ${{matrix.test}}_corpus
path: ${{github.workspace}}/build/corpus