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