summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2022-07-10 09:02:12 (GMT)
committerYann Collet <cyan@fb.com>2022-07-10 09:02:12 (GMT)
commit58fd9d08c8e6e0a31b4ad2e6cbc3bf0253d1e562 (patch)
treeab03e7f11cee21695096b1e2a1bdffbb418c6c49 /.github
parent9d20cd519ae62c8864ab237068e4c11490cbd0a9 (diff)
downloadlz4-58fd9d08c8e6e0a31b4ad2e6cbc3bf0253d1e562.zip
lz4-58fd9d08c8e6e0a31b4ad2e6cbc3bf0253d1e562.tar.gz
lz4-58fd9d08c8e6e0a31b4ad2e6cbc3bf0253d1e562.tar.bz2
add ossfuzz tests to Github Actions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fa7e7e9..82ac2d1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -436,6 +436,36 @@ jobs:
- name: examples (compile as C++ code)
run: make V=1 -C examples clean cxxtest
+ # lasts ~20mn
+ oss-fuzz:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ 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: 'lz4'
+ dry-run: false
+ sanitizer: ${{ matrix.sanitizer }}
+ - name: Run Fuzzers (${{ matrix.sanitizer }})
+ uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
+ with:
+ oss-fuzz-project-name: 'lz4'
+ fuzz-seconds: 600
+ dry-run: false
+ 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
+
+
###############################################################
# Platforms