]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Adding CIFuzz
authorLeo Neat <lneat@google.com>
Wed, 18 Mar 2020 17:21:14 +0000 (10:21 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 16 Apr 2020 11:26:52 +0000 (13:26 +0200)
.github/workflows/fuzz.yml [new file with mode: 0644]

diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml
new file mode 100644 (file)
index 0000000..942ee1b
--- /dev/null
@@ -0,0 +1,23 @@
+name: CIFuzz
+on: [pull_request]
+jobs:
+  Fuzzing:
+    runs-on: ubuntu-latest
+    steps:
+    - name: Build Fuzzers
+      uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
+      with:
+        oss-fuzz-project-name: 'zlib-ng'
+        dry-run: false
+    - name: Run Fuzzers
+      uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
+      with:
+        oss-fuzz-project-name: 'zlib-ng'
+        fuzz-seconds: 600
+        dry-run: false
+    - name: Upload Crash
+      uses: actions/upload-artifact@v1
+      if: failure()
+      with:
+        name: artifacts
+        path: ./out/artifacts