-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (41 loc) · 1021 Bytes
/
fuzz.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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