-
Notifications
You must be signed in to change notification settings - Fork 98
51 lines (47 loc) · 1.2 KB
/
run_fuzzer.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
name: fuzz
on:
push:
pull_request:
schedule:
- cron: "25 */12 * * *"
workflow_dispatch:
jobs:
fuzz:
runs-on: ubuntu-latest
steps:
- name: Fetch head
uses: actions/checkout@v3
with:
path: 'head'
- uses: actions/cache@v3
id: cache-corpus
with:
path: head/fuzzing/corpus.tar
key: corpus-${{ github.run_id }}
restore-keys: corpus-
- uses: ./head/.github/actions/build
with:
buildtype: 'boost'
path: 'head'
toolset: clang
targets: libs/json/fuzzing//run
- name: Pack the corpus
working-directory: boost-root/libs/json/fuzzing/
run: |
tar cf - cmin > corpus.tar.tmp && mv corpus.tar.tmp "${GITHUB_WORKSPACE}"/head/fuzzing
- name: Save the corpus as a github artifact
uses: actions/upload-artifact@v3
if: success()
with:
name: corpus
path: head/fuzzing/corpus.tar
- name: Archive any crashes as an artifact
uses: actions/upload-artifact@v3
if: always()
with:
name: crashes
path: |
boost-root/crash-*
boost-root/leak-*
boost-root/timeout-*
if-no-files-found: ignore