ci: use matrix for fuzz targets
to make them run in parallel
This commit is contained in:
parent
5de8543bb0
commit
88a872cd88
1 changed files with 7 additions and 5 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue