Make test_casr_libfuzzer more stable (#228) #405
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 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ubuntu-latest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Fuzzing | |
run: | | |
curl https://sh.rustup.rs -o rustup.sh && chmod +x rustup.sh && \ | |
./rustup.sh -y && rm rustup.sh | |
rustup install nightly | |
export PATH=/root/.cargo/bin:$PATH | |
cargo install cargo-fuzz | |
cd libcasr/fuzz | |
mkdir corpus | |
cargo +nightly fuzz run parse_stacktrace corpus init_corpus -- -max_total_time=600 |