From 8a57fd06bde2d5c9e71faea8ce903c87ced3ebf9 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Mon, 21 Nov 2022 03:24:24 +0100 Subject: [PATCH] Add cifuzz --- .github/workflows/cpp.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 0c12121..9940ece 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -4,6 +4,28 @@ on: [push] jobs: + short_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: 'uwebsockets' + language: c++ + - name: Run fuzzers + uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master + with: + oss-fuzz-project-name: 'uwebsockets' + language: c++ + fuzz-seconds: 600 + - name: Upload crash + uses: actions/upload-artifact@v3 + if: failure() && steps.build.outcome == 'success' + with: + name: artifacts + path: ./out/artifacts + build_windows: runs-on: windows-latest steps: