From d8ecb88f124965d36b8bc444beed2e5d596cbef6 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Sat, 26 Nov 2022 19:40:02 +0000 Subject: [PATCH] ci: add CIFuzz Github action (#1382) Signed-off-by: David Korczynski Co-authored-by: Azat Khuzhin --- .github/workflows/cifuzz.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/cifuzz.yml diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml new file mode 100644 index 0000000000..e7ef4776d9 --- /dev/null +++ b/.github/workflows/cifuzz.yml @@ -0,0 +1,35 @@ +name: CIFuzz +on: + pull_request: + types: + - synchronize + - reopened + - opened + branches: + - master + push: + push: + branches: + - master +jobs: + Fuzzing: + runs-on: ubuntu-latest + steps: + - name: Build Fuzzers + id: build + uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master + with: + oss-fuzz-project-name: 'libevent' + language: c++ + - name: Run Fuzzers + uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master + with: + oss-fuzz-project-name: 'libevent' + fuzz-seconds: 300 + language: c++ + - name: Upload Crash + uses: actions/upload-artifact@v3 + if: failure() && steps.build.outcome == 'success' + with: + name: artifacts + path: ./out/artifacts