From c31ddf3aeb4c76a542a2aa7ae6ecec527ee14795 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Thu, 11 Apr 2024 15:00:05 -0700 Subject: [PATCH] Run `cargo cmin` before uploading seed corpus --- .github/workflows/ci.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f2428cc38..48c4550d7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -112,6 +112,12 @@ jobs: name: fuzz_read_bad_inputs path: fuzz/artifacts/fuzz_read/crash-* if-no-files-found: ignore + - name: Minimize seed corpus + if: always() + uses: actions-rs/cargo@v1 + with: + command: fuzz + args: cmin --no-default-features fuzz_read -- fuzz/corpus/seed - name: Upload updated seed corpus if: always() uses: actions/upload-artifact@v4 @@ -151,6 +157,12 @@ jobs: name: fuzz_read_no_features_bad_inputs path: fuzz/artifacts/fuzz_read/crash-* if-no-files-found: ignore + - name: Minimize seed corpus + if: always() + uses: actions-rs/cargo@v1 + with: + command: fuzz + args: cmin --no-default-features fuzz_read -- fuzz/corpus/seed - name: Upload updated seed corpus if: always() uses: actions/upload-artifact@v4 @@ -190,6 +202,12 @@ jobs: name: fuzz_write_bad_inputs path: fuzz/artifacts/fuzz_write/crash-* if-no-files-found: ignore + - name: Minimize seed corpus + if: always() + uses: actions-rs/cargo@v1 + with: + command: fuzz + args: cmin fuzz_write -- fuzz/corpus/seed - name: Upload updated seed corpus if: always() uses: actions/upload-artifact@v4 @@ -229,6 +247,12 @@ jobs: name: fuzz_write_no_features_bad_inputs path: fuzz/artifacts/fuzz_write/crash-* if-no-files-found: ignore + - name: Minimize seed corpus + if: always() + uses: actions-rs/cargo@v1 + with: + command: fuzz + args: cmin --no-default-features fuzz_write -- fuzz/corpus/seed - name: Upload updated seed corpus if: always() uses: actions/upload-artifact@v4