xref: /freebsd/contrib/libcbor/.github/workflows/fuzz.yml (revision 5d3e7166f6a0187fa3f8831b16a06bd9955c21ff)
110ff414cSEd Mastename: CIFuzz
2*5d3e7166SEd Masteon:
3*5d3e7166SEd Maste  schedule:
4*5d3e7166SEd Maste    - cron:  '0 4 * * *'
510ff414cSEd Mastejobs:
610ff414cSEd Maste  Fuzzing:
710ff414cSEd Maste    runs-on: ubuntu-latest
810ff414cSEd Maste    steps:
910ff414cSEd Maste    - name: Build Fuzzers
1010ff414cSEd Maste      uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
1110ff414cSEd Maste      with:
1210ff414cSEd Maste        oss-fuzz-project-name: 'libcbor'
1310ff414cSEd Maste        dry-run: false
1410ff414cSEd Maste    - name: Run Fuzzers
1510ff414cSEd Maste      uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
1610ff414cSEd Maste      with:
1710ff414cSEd Maste        oss-fuzz-project-name: 'libcbor'
18*5d3e7166SEd Maste        fuzz-seconds: 14400 # 4 hours
1910ff414cSEd Maste        dry-run: false
2010ff414cSEd Maste    - name: Upload Crash
2110ff414cSEd Maste      uses: actions/upload-artifact@v1
2210ff414cSEd Maste      if: failure()
2310ff414cSEd Maste      with:
2410ff414cSEd Maste        name: artifacts
2510ff414cSEd Maste        path: ./out/artifacts
26