From 9e945ced455dd5334afc5cbcf3d99980d2c4b00f Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 3 Jun 2023 22:22:38 +0200 Subject: [PATCH] build: reformat action for fuzzing --- .github/workflows/cifuzz.yml | 55 ++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml index bde0e12e..1a3bf40e 100644 --- a/.github/workflows/cifuzz.yml +++ b/.github/workflows/cifuzz.yml @@ -1,32 +1,37 @@ +--- name: CIFuzz -on: [pull_request] +on: + pull_request: jobs: - Fuzzing: + fuzzing: runs-on: ubuntu-latest strategy: fail-fast: false matrix: - sanitizer: [address, undefined, memory] + sanitizer: + - address + - undefined + - memory steps: - - name: Build Fuzzers (${{ matrix.sanitizer }}) - id: build - uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master - with: - oss-fuzz-project-name: 'lldpd' - dry-run: false - language: c - sanitizer: ${{ matrix.sanitizer }} - - name: Run Fuzzers (${{ matrix.sanitizer }}) - uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master - with: - oss-fuzz-project-name: 'lldpd' - dry-run: false - language: c - fuzz-seconds: 300 - sanitizer: ${{ matrix.sanitizer }} - - name: Upload Crash - uses: actions/upload-artifact@v1 - if: failure() && steps.build.outcome == 'success' - with: - name: ${{ matrix.sanitizer }}-artifacts - path: ./out/artifacts + - name: Build Fuzzers (${{ matrix.sanitizer }}) + id: build + uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master + with: + oss-fuzz-project-name: "lldpd" + dry-run: false + language: c + sanitizer: ${{ matrix.sanitizer }} + - name: Run Fuzzers (${{ matrix.sanitizer }}) + uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master + with: + oss-fuzz-project-name: "lldpd" + dry-run: false + language: c + fuzz-seconds: 300 + sanitizer: ${{ matrix.sanitizer }} + - name: Upload Crash + uses: actions/upload-artifact@v1 + if: failure() && steps.build.outcome == 'success' + with: + name: ${{ matrix.sanitizer }}-artifacts + path: ./out/artifacts -- 2.39.5