| 1 | name: Fuzz |
| 2 | |
| 3 | on: |
| 4 | [pull_request, workflow_dispatch] |
| 5 | |
| 6 | jobs: |
| 7 | fuzz: |
| 8 | name: Fuzz ${{matrix.target}} |
| 9 | runs-on: ubuntu-latest |
| 10 | strategy: |
| 11 | fail-fast: false |
| 12 | matrix: |
| 13 | target: [fast_float, roundtrip_f64] |
| 14 | steps: |
| 15 | - uses: actions/checkout@v2 |
| 16 | with: |
| 17 | submodules: recursive |
| 18 | - uses: dtolnay/rust-toolchain@master |
| 19 | with: |
| 20 | toolchain: nightly |
| 21 | - run: cargo install cargo-fuzz |
| 22 | - run: cargo check |
| 23 | - run: | |
| 24 | cd fuzz |
| 25 | cargo +nightly fuzz run --release ${{matrix.target}} -- -max_total_time=300 |