fixup! Explicitly set working directory for the Rust cache action #74
Workflow file for this run
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: [ ci-updates ] | |
workflow_dispatch: | |
schedule: | |
# Weekly on Sunday | |
- cron: "0 0 * * 0" | |
permissions: | |
contents: read | |
jobs: | |
fuzz: | |
name: Fuzz | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
target: | |
- adj_list_undirected | |
- adj_list_directed | |
- adj_matrix_undirected | |
- adj_matrix_directed | |
- edge_list_undirected | |
- edge_list_directed | |
- stable_undirected | |
- stable_directed | |
defaults: | |
run: | |
working-directory: fuzz | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: fuzz -> target | |
- run: cargo install cargo-fuzz | |
- name: cargo fuzz run | |
run: | | |
cargo fuzz build | |
timeout 1m cargo fuzz run ${{ matrix.target }} || EXIT_CODE=$? | |
test $EXIT_CODE -eq 124 # 124 indicates cancellation |