-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.07 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
name: Fuzz
on: [push]
jobs:
fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: bazelbuild/setup-bazelisk@v1
- name: Install deps
run: sudo apt-get install clang libunwind-dev libblocksruntime-dev
- name: Build
run: |
cd ${GITHUB_WORKSPACE}/fuzz
bazel build --config=jazzer //:Fuzzer_run
- name: Fuzz
run: |
mkdir -p ${RUNNER_TEMP}/fuzzing-corpus
cd ${RUNNER_TEMP}
git clone --branch fuzzer-corpus --depth=1 https://github.com/eustas/nopb-worker.git
unzip nopb-worker/corpus.zip -d ${RUNNER_TEMP}/fuzzing-corpus
cd ${GITHUB_WORKSPACE}/fuzz
bazel run --config=jazzer //:Fuzzer_run -- \
--timeout_secs=600 \
--fuzzing_output_root=${RUNNER_TEMP}/new-corpus \
--corpus_dir=${RUNNER_TEMP}/fuzzing-corpus \
-- -fork=2
- uses: actions/upload-artifact@v2
with:
name: corpus
path: ${{ runner.temp }}/new-corpus/corpus
if-no-files-found: error