David Korczynski | f95b730 | 2022-11-17 16:44:31 -0800 | [diff] [blame] | 1 | name: CIFuzz |
| 2 | on: [pull_request] |
| 3 | jobs: |
| 4 | Fuzzing: |
| 5 | runs-on: ubuntu-latest |
| 6 | steps: |
| 7 | - name: Build Fuzzers |
| 8 | id: build |
| 9 | uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master |
| 10 | with: |
| 11 | oss-fuzz-project-name: 'libyang' |
| 12 | dry-run: false |
| 13 | - name: Run Fuzzers |
| 14 | uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master |
| 15 | with: |
| 16 | oss-fuzz-project-name: 'libyang' |
| 17 | fuzz-seconds: 300 |
| 18 | dry-run: false |
| 19 | - name: Upload Crash |
| 20 | uses: actions/upload-artifact@v3 |
| 21 | if: failure() && steps.build.outcome == 'success' |
| 22 | with: |
| 23 | name: artifacts |
| 24 | path: ./out/artifacts |