mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-21 23:47:56 +00:00
67c2f2b4e8
* Update Fuzzing: * add coverage generation * fix block numeration error * fix AFL build error * add an EVM run * toml sort * fix unexistent call
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: Generic Template Fuzzer (Weekly run)
|
|
|
|
on:
|
|
schedule:
|
|
# Runs at 00:00 UTC every Sunday
|
|
- cron: '0 0 * * 0'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
generic-template-fuzzer:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
|
|
- name: Add target
|
|
run: rustup target add wasm32-unknown-unknown
|
|
|
|
- name: Add dependencies
|
|
run: cargo install ziggy cargo-afl honggfuzz grcov
|
|
|
|
- name: Build AFL config
|
|
run: cargo afl config --build
|
|
working-directory: generic-template/template-fuzzer
|
|
|
|
- name: Run Ziggy Fuzzing
|
|
run: |
|
|
AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 timeout 5h cargo ziggy fuzz -t 20 || true
|
|
working-directory: generic-template/template-fuzzer
|
|
|
|
- name: Generate Ziggy Fuzzing Coverage Result
|
|
run: |
|
|
CARGO_HOME=.cargo cargo ziggy cover
|
|
working-directory: generic-template/template-fuzzer
|
|
|
|
- name: Zip Artifacts
|
|
run: zip artifacts.zip generic-template/template-fuzzer/output/* -r
|
|
|
|
- name: Save Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: fuzzing-artifacts
|
|
path: artifacts.zip
|