| 1 | name: CIFuzz |
| 2 | on: [pull_request] |
| 3 | jobs: |
| 4 | Fuzzing: |
| 5 | runs-on: ubuntu-latest |
| 6 | strategy: |
| 7 | fail-fast: false |
| 8 | matrix: |
| 9 | sanitizer: [address, undefined, memory] |
| 10 | steps: |
| 11 | - name: Build Fuzzers (${{ matrix.sanitizer }}) |
| 12 | id: build |
| 13 | uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master |
| 14 | with: |
| 15 | oss-fuzz-project-name: 'rabbitmq-c' |
| 16 | dry-run: false |
| 17 | language: c |
| 18 | sanitizer: ${{ matrix.sanitizer }} |
| 19 | - name: Run Fuzzers (${{ matrix.sanitizer }}) |
| 20 | uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master |
| 21 | with: |
| 22 | oss-fuzz-project-name: 'rabbitmq-c' |
| 23 | dry-run: false |
| 24 | language: c |
| 25 | fuzz-seconds: 300 |
| 26 | sanitizer: ${{ matrix.sanitizer }} |
| 27 | - name: Upload Crash |
| 28 | uses: actions/upload-artifact@v4 |
| 29 | if: failure() && steps.build.outcome == 'success' |
| 30 | with: |
| 31 | name: ${{ matrix.sanitizer }}-artifacts |
| 32 | path: ./out/artifacts |