-
Notifications
You must be signed in to change notification settings - Fork 11
41 lines (38 loc) · 1.22 KB
/
fuzz.yml
File metadata and controls
41 lines (38 loc) · 1.22 KB
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
name: Fuzz
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: read
issues: write
jobs:
fuzz:
if: ${{ !github.event.act }}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Install test dependencies
run: sudo apt-get update -y && sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc libiberty-dev
- uses: actions/checkout@v6
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.89
- name: Cache cargo dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: "fuzz -> target"
- name: Run all fuzz targets
env:
HFUZZ_FAIL_ON_CRASH: 1
run: cd fuzz && ./fuzz.sh
- name: Create issue on failure
if: failure() && github.event_name == 'schedule'
env:
GH_TOKEN: ${{ github.token }}
run: |
gh issue create \
--title "Nightly fuzz failure $(date -u +%Y-%m-%d)" \
--body "The nightly fuzz run failed. See: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
--label "bug"