Merge pull request #5430 from cakebaker/cp_remove_destination_shouldn… #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fuzzing | |
# spell-checker:ignore fuzzer | |
on: [push, pull_request] | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
# End the current execution if there is a new changeset in the PR. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
fuzz: | |
name: Run the fuzzers | |
runs-on: ubuntu-latest | |
env: | |
RUN_FOR: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
- name: Install `cargo-fuzz` | |
run: cargo install cargo-fuzz | |
- uses: Swatinem/rust-cache@v2 | |
- name: Restore Cached Corpus | |
uses: actions/cache/restore@v3 | |
with: | |
key: corpus-cache | |
path: | | |
fuzz/corpus | |
- name: Run fuzz_date for XX seconds | |
continue-on-error: true | |
shell: bash | |
run: | | |
cargo +nightly fuzz run fuzz_date -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0 | |
- name: Run fuzz_test for XX seconds | |
shell: bash | |
run: | | |
cargo +nightly fuzz run fuzz_test -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0 | |
- name: Run fuzz_expr for XX seconds | |
continue-on-error: true | |
shell: bash | |
run: | | |
cargo +nightly fuzz run fuzz_expr -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0 | |
- name: Run fuzz_parse_glob for XX seconds | |
shell: bash | |
run: | | |
cargo +nightly fuzz run fuzz_parse_glob -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0 | |
- name: Run fuzz_parse_size for XX seconds | |
shell: bash | |
run: | | |
cargo +nightly fuzz run fuzz_parse_size -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0 | |
- name: Run fuzz_parse_time for XX seconds | |
shell: bash | |
run: | | |
cargo +nightly fuzz run fuzz_parse_time -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0 | |
- name: Save Corpus Cache | |
uses: actions/cache/save@v3 | |
with: | |
key: corpus-cache | |
path: | | |
fuzz/corpus |