-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (30 loc) · 902 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
name: Fuzz
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
HFUZZ_RUN_ARGS: --run_time 120 --exit_upon_crash -v
jobs:
fuzz:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
fuzz_target: [bytewords_decode, bytewords_encode, ur_encode]
steps:
- name: Install test dependencies
run: sudo apt-get update -y && sudo apt-get install -y build-essential binutils-dev libunwind-dev libblocksruntime-dev liblzma-dev
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- run: cargo install honggfuzz
- name: Fuzz
working-directory: ./fuzz
run: |
cargo hfuzz run ${{ matrix.fuzz_target }}
test $(ls hfuzz_workspace/${{ matrix.fuzz_target }} | wc -l) -eq 1