Skip to content

Commit

Permalink
store corpus
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Oct 6, 2023
1 parent 3c2e327 commit 44ceff5
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,28 @@ jobs:
name: Run the fuzzers
runs-on: ubuntu-latest
env:
RUN_FOR: 60
RUN_FOR: 1
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: Install `cargo-fuzz`
run: cargo install cargo-fuzz
- uses: Swatinem/rust-cache@v2

# Download and decompress the existing corpus artifact
- name: Download compressed fuzzing corpus
uses: actions/download-artifact@v2
with:
name: fuzz-corpus-compressed
path: fuzz/corpus.tar.gz
continue-on-error: true # It's okay if no artifact exists yet

- name: Decompress fuzzing corpus
run: |
cd fuzz
tar -xzf corpus.tar.gz
continue-on-error: true # It's okay if no artifact exists yet

- name: Run fuzz_date for XX seconds
shell: bash
run: |
Expand Down Expand Up @@ -175,6 +190,18 @@ jobs:
cd fuzz
cargo +nightly fuzz run fuzz_parse_time -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
# Compress and upload the updated corpus as an artifact
- name: Compress fuzzing corpus
run: |
cd fuzz
tar -czf corpus.tar.gz corpus/
- name: Upload compressed fuzzing corpus
uses: actions/upload-artifact@v2
with:
name: fuzz-corpus-compressed
path: fuzz/corpus.tar.gz

style_lint:
name: Style/lint
runs-on: ${{ matrix.job.os }}
Expand Down

0 comments on commit 44ceff5

Please sign in to comment.