fuzz #5
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
| name: fuzz | |
| on: | |
| schedule: | |
| - cron: "0 4 * * 0" # Weekly, Sunday 04:00 UTC | |
| workflow_dispatch: | |
| jobs: | |
| fuzz: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: | |
| - fuzz_pack_scan | |
| - fuzz_decompress | |
| - fuzz_msgpack_snapshot_meta | |
| - fuzz_msgpack_index_blob | |
| - fuzz_item_stream | |
| - fuzz_file_cache_decode | |
| - fuzz_unpack_object | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install nightly toolchain | |
| uses: dtolnay/rust-toolchain@nightly | |
| - name: Install cargo-fuzz | |
| run: cargo install cargo-fuzz | |
| - name: Run fuzzer (${{ matrix.target }}, 300s) | |
| run: | | |
| cargo +nightly fuzz run ${{ matrix.target }} -- \ | |
| -max_total_time=300 \ | |
| -rss_limit_mb=4096 \ | |
| -max_len=1048576 | |
| - name: Upload crash artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: fuzz-crashes-${{ matrix.target }} | |
| path: fuzz/artifacts/${{ matrix.target }}/ |