ci: use matrix for fuzz targets

to make them run in parallel
This commit is contained in:
Noah Hellman 2023-04-10 18:42:32 +02:00
parent 5de8543bb0
commit 88a872cd88

View file

@ -68,6 +68,11 @@ jobs:
run: make lint
fuzz:
name: Fuzz
strategy:
matrix:
target:
- parse
- html
runs-on: ubuntu-latest
steps:
- name: "Checkout"
@ -77,13 +82,10 @@ jobs:
rustup update nightly
rustup default nightly
cargo install afl
- name: "Fuzz parser"
- name: "Fuzz"
run: |
echo core | sudo tee /proc/sys/kernel/core_pattern
AFL_TARGET=parse make afl_quick
- name: "Fuzz html"
run: |
AFL_TARGET=html make afl_quick
AFL_TARGET=${{ matrix.target }} make afl_quick
bench:
name: Benchmark
runs-on: ubuntu-latest