Nightly Fuzz #149
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: Nightly Fuzz | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 6 * * *" # Every day at 06:00 UTC | |
| permissions: | |
| contents: read | |
| jobs: | |
| fuzz-nightly: | |
| name: Nightly Fuzz | |
| runs-on: ubuntu-latest | |
| env: | |
| RUST_BACKTRACE: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| shared-key: fuzz-nightly-${{ runner.os }} | |
| workspaces: | | |
| . -> target | |
| fuzz -> fuzz/target | |
| - name: Install cargo-fuzz | |
| uses: dtolnay/install@cargo-fuzz | |
| - name: Run fuzz_json | |
| run: cargo +nightly fuzz run fuzz_json -- -max_total_time=300 | |
| - name: Run fuzz_emf | |
| run: cargo +nightly fuzz run fuzz_emf -- -max_total_time=300 | |
| - name: Upload crash artifacts | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: fuzz-artifacts | |
| path: fuzz/artifacts/ |