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