Skip to content

Commit

Permalink
ci(fuzz): use matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoklee committed Aug 28, 2024
1 parent c9eecc6 commit 6d9f366
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,30 @@ on:
branches:
- develop
jobs:
build:
fuzz:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ matrix.sanitizer }}-${{ matrix.architecture }}-${{ github.ref }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
sanitizer: [address, undefined, memory]
architecture: [x86_64]
include:
- sanitizer: address
architecture: i386
permissions:
security-events: write

steps:
- name: Build Fuzzers
id: build
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'hdf5'
sanitizer: 'memory'
sanitizer: ${{ matrix.sanitizer }}
architecture: ${{ matrix.architecture }}
dry-run: false
keep-unaffected-fuzz-targets: true
- name: Run Fuzzers
Expand All @@ -21,5 +36,5 @@ jobs:
oss-fuzz-project-name: 'hdf5'
fuzz-seconds: 600
output-sarif: true
sanitizer: 'memory'
sanitizer: sanitizer: ${{ matrix.sanitizer }}
dry-run: false
12 changes: 9 additions & 3 deletions .github/workflows/fuzz_hk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,25 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: hyoklee/oss-fuzz
- name: Build Fuzzers
id: build
uses: hyoklee/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'hdf5'
sanitizer: 'memory'
dry-run: false
keep-unaffected-fuzz-targets: true
project-src-path: "${{ runner.workspace }}/projects/hdf5"
- name: Run Fuzzers
uses: hyoklee/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'hdf5'
fuzz-seconds: 600
output-sarif: true
sanitizer: 'memory'
dry-run: false
dry-run: false
project-src-path: ./projects/hdf5

0 comments on commit 6d9f366

Please sign in to comment.