Fix compilation of fuzzer, make upgrade path for spans smoother, add CI #29
Workflow file for this run
This file contains hidden or 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
| # This workflow doesn't do fuzzing, it just ensures that the fuzzing code can compile | |
| name: Fuzz check | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Check fuzz code compiles | |
| working-directory: ./fuzz | |
| run: cargo check | |
| - name: Build AFL target | |
| working-directory: ./fuzz | |
| run: make setup-afl | |
| - name: Build libfuzzer target | |
| working-directory: ./fuzz | |
| run: | | |
| rustup toolchain install nightly | |
| cargo install cargo-fuzz | |
| cargo +nightly fuzz build main_libfuzzer |