Skip to content
Snippets Groups Projects

Add fuzzing testing setup

Merged Dominik Loidolt requested to merge fuzz into master
1 file
+ 28
0
Compare changes
  • Side-by-side
  • Inline
  • The continuous build task causes a build to be triggered and uploaded as a GitHub Actions artifact whenever a new push is done to main/default branch.
    
    Continuous builds are used when a crash is found during PR fuzzing to determine whether the crash was newly introduced. If the crash is not novel, PR fuzzing will not report it. This means that there will be fewer unrelated failures when running code change fuzzing.
 
name: ClusterFuzzLite continuous builds
 
on:
 
push:
 
branches:
 
- master
 
permissions: read-all
 
jobs:
 
Build:
 
runs-on: ubuntu-latest
 
concurrency:
 
group: ${{ github.workflow }}-${{ matrix.sanitizer }}-${{ github.ref }}
 
cancel-in-progress: true
 
strategy:
 
fail-fast: false
 
matrix:
 
sanitizer:
 
- address
 
- undefined
 
- memory
 
steps:
 
- name: Build Fuzzers (${{ matrix.sanitizer }})
 
id: build
 
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
 
with:
 
language: c
 
sanitizer: ${{ matrix.sanitizer }}
 
upload-build: true
 
Loading