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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Fuzz
# Ten minutes per parser every night (dev/PLAN.md section 19.1); 24 hours per
# target is run by hand before 0.8. Crashes are uploaded as artifacts and fixed
# test-first (fuzz/README.md).
on:
schedule:
- cron: "17 3 * * *"
workflow_dispatch:
inputs:
seconds:
description: Seconds per target
default: "600"
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
fuzz:
name: Fuzz (${{ matrix.target }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- os_release
- release
- version
- cpu_list
- cpuinfo
- cpu_name
- proc_status
- mountinfo
- cgroup
- pid_file
- instance_id
- bytes_display
- procfs
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
with:
workspaces: fuzz
key: ${{ matrix.target }}
- name: Install cargo-fuzz
uses: taiki-e/install-action@v2
with:
tool: cargo-fuzz
# install-action's cargo-fuzz is a musl build, and cargo-fuzz defaults to
# its own target, where AddressSanitizer cannot run: name the target.
- name: Fuzz
run: |
mkdir -p "$RUNNER_TEMP/corpus"
cargo fuzz run --target x86_64-unknown-linux-gnu ${{ matrix.target }} "$RUNNER_TEMP/corpus" tests/fixtures -- \
-max_total_time=${{ inputs.seconds || '600' }}
- uses: actions/upload-artifact@v5
if: failure()
with:
name: crash-${{ matrix.target }}
path: fuzz/artifacts/
retention-days: 30