Skip to content

Commit

Permalink
ci(fuzz): Add workflow_dispatch and minimize step (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
tirr-c authored Aug 15, 2024
1 parent cfd307d commit 2639713
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- v*.x
schedule:
- cron: '11 15 * * *' # every day at 15:11 UTC
workflow_dispatch: {}
name: Fuzz
env:
FUZZ_CORPUS_URL: 'https://jxl-oxide-fixtures.tirr.dev/fuzz-corpus.tar.zst'
Expand Down Expand Up @@ -61,8 +62,15 @@ jobs:
-max_len=4096 \
-timeout=5 \
-max_total_time=1200
- name: Minimize corpus
id: minimize
run: |
cargo fuzz cmin libfuzzer-decode -- \
-max_len=8192 \
-timeout=5 \
-max_total_time=600
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() && steps.fuzz.outcome == 'failure' }}
if: ${{ !cancelled() && (steps.fuzz.outcome == 'failure' || steps.minimize.outcome == 'failure') }}
with:
name: fuzz-artifacts
path: fuzz/artifacts/
Expand Down

0 comments on commit 2639713

Please sign in to comment.