1name: CIFuzz 2on: 3 push: 4 branches: 5 - master 6 paths: 7 - '**.c' 8 - '**.h' 9 pull_request: 10 branches: 11 - master 12 paths: 13 - '**.c' 14 - '**.h' 15 16jobs: 17 Fuzzing: 18 runs-on: ubuntu-latest 19 steps: 20 - name: Build Fuzzers 21 id: build 22 uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master 23 with: 24 oss-fuzz-project-name: 'nanopb' 25 dry-run: false 26 sanitizer: undefined 27 - name: Run Fuzzers 28 uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master 29 with: 30 oss-fuzz-project-name: 'nanopb' 31 fuzz-seconds: 600 32 dry-run: false 33 sanitizer: undefined 34 - name: Upload Crash 35 uses: actions/upload-artifact@v1 36 if: failure() && steps.build.outcome == 'success' 37 with: 38 name: artifacts 39 path: ./out/artifacts 40