xref: /freebsd/contrib/libcbor/.github/workflows/fuzz.yml (revision 257e70f1d5ee61037c8c59b116538d3b6b1427a2)
1name: CIFuzz
2on:
3  schedule:
4    - cron:  '0 4 * * *'
5jobs:
6  Fuzzing:
7    runs-on: ubuntu-latest
8    steps:
9    - name: Build Fuzzers
10      uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
11      with:
12        oss-fuzz-project-name: 'libcbor'
13        dry-run: false
14    - name: Run Fuzzers
15      uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
16      with:
17        oss-fuzz-project-name: 'libcbor'
18        fuzz-seconds: 14400 # 4 hours
19        dry-run: false
20    - name: Upload Crash
21      uses: actions/upload-artifact@v1
22      if: failure()
23      with:
24        name: artifacts
25        path: ./out/artifacts
26