From 88a872cd88dd190cd41def0b362369e728bb6aec Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Mon, 10 Apr 2023 18:42:32 +0200 Subject: [PATCH] ci: use matrix for fuzz targets to make them run in parallel --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8244981..2ae1c5a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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