Skip to content

Commit

Permalink
Run all fuzz tests in a matrix configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeisler committed Jan 9, 2022
1 parent 89d4782 commit 6850e29
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ jobs:
fuzz:
name: Fuzz test
runs-on: ubuntu-latest
strategy:
matrix:
fuzz-target:
- fill_first_fit
- fill_optimal_fit
- wrap_first_fit
- wrap_optimal_fit

steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -126,19 +134,16 @@ jobs:
- name: Cache fuzz corpus
uses: actions/cache@v2
with:
path: fuzz/corpus
key: fuzz-corpus-${{ github.run_id }}
path: fuzz/corpus/${{ matrix.fuzz-target }}
key: fuzz-corpus-${{ matrix.fuzz-target }}-${{ github.run_id }}
restore-keys: |
fuzz-corpus-
- name: Build fuzz targets
run: cargo fuzz build
fuzz-corpus-${{ matrix.fuzz-target }}
- name: Fuzz test
run: cargo fuzz run fill_first_fit -- -max_total_time=30
- name: Run fuzz test
run: cargo fuzz run ${{ matrix.fuzz-target }} -- -max_total_time=30

- name: Minimize fuzz corpus
run: cargo fuzz cmin fill_first_fit
run: cargo fuzz cmin ${{ matrix.fuzz-target }}

binary-sizes:
name: Compute binary sizes
Expand Down

0 comments on commit 6850e29

Please sign in to comment.