2
0
mirror of https://github.com/boostorg/json.git synced 2026-02-02 21:02:18 +00:00
Files
json/.github/workflows/run_fuzzer.yml
2020-09-06 06:11:30 -07:00

47 lines
1.0 KiB
YAML

name: fuzz
on:
push:
pull_request:
schedule:
- cron: "25 */12 * * *"
workflow_dispatch:
jobs:
fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache-corpus
with:
path: fuzzing/corpus.tar
key: corpus-${{ github.run_id }}
restore-keys: corpus-
- name: build and run
run: ./fuzz.sh
working-directory: fuzzing/
- name: Pack the corpus
working-directory: fuzzing/
run: |
tar cf - cmin > corpus.tar.tmp && mv corpus.tar.tmp corpus.tar
- name: Save the corpus as a github artifact
uses: actions/upload-artifact@v2
if: success()
with:
name: corpus
path: fuzzing/corpus.tar
- name: Archive any crashes as an artifact
uses: actions/upload-artifact@v2
if: always()
with:
name: crashes
path: |
fuzzing/crash-*
fuzzing/leak-*
fuzzing/timeout-*
if-no-files-found: ignore