Upload failed fuzz inputs if any

This commit is contained in:
Chris Hennick 2023-05-10 19:34:15 -07:00
parent cfa91e75b0
commit 5e9ccfb27d
No known key found for this signature in database
GPG key ID: 25653935CC8B6C74

View file

@ -91,6 +91,13 @@ jobs:
- name: run fuzz - name: run fuzz
run: | run: |
cargo fuzz run fuzz_read -- -timeout=1s -jobs=10 -workers=2 -runs=1000000 -max_len=5000000000 cargo fuzz run fuzz_read -- -timeout=1s -jobs=10 -workers=2 -runs=1000000 -max_len=5000000000
- name: Upload any failure inputs
if-no-files-found: ignore
if: always()
uses: actions/upload-artifact@v3
with:
name: fuzz_read_bad_inputs
path: fuzz/artifacts/fuzz_read/crash-*
fuzz_write: fuzz_write:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -110,3 +117,10 @@ jobs:
- name: run fuzz - name: run fuzz
run: | run: |
cargo fuzz run fuzz_write -- -timeout=1s -jobs=30 -workers=2 -runs=100000 -max_len=5000000000 cargo fuzz run fuzz_write -- -timeout=1s -jobs=30 -workers=2 -runs=100000 -max_len=5000000000
- name: Upload any failure inputs
if-no-files-found: ignore
if: always()
uses: actions/upload-artifact@v3
with:
name: fuzz_write_bad_inputs
path: fuzz/artifacts/fuzz_write/crash-*