Skip to content

Revision 1.1 fuzzing #7

Revision 1.1 fuzzing

Revision 1.1 fuzzing #7

name: Test Fuzz Tests
on:
workflow_dispatch:
pull_request:
env:
HONGGFUZZ_VERSION: 0.5.56
TRIDENT_COMMIT_HASH: eb8f647104209323b53e3637d3d3c5b7d140d368 # Desired Trident commit hash
jobs:
fuzz_0:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
name: Checkout Repository
- name: Set Anchor Version
run: echo "ANCHOR_VERSION=0.30.1" >> $GITHUB_ENV
- uses: Swatinem/rust-cache@v2
name: Cache Rust and its Packages
- name: Setup Rust Environment
uses: ./.github/actions/setup-rust/
- name: Setup Trident with Specified Commit
uses: ./.github/actions/setup-trident/
with:
commit-hash: ${{ env.TRIDENT_COMMIT_HASH }}
- name: Setup Honggfuzz
uses: ./.github/actions/setup-honggfuzz/
id: rust-setup
# Cache the target folder, which stores build artifacts for the current workspace
- name: Cache Target Folder
uses: actions/cache@v3
with:
path: trident-tests/fuzz_tests/fuzzing/hfuzz_target
key: target-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.TRIDENT_COMMIT_HASH }}
- name: Run Fuzz Tests
run: trident fuzz run --with-exit-code fuzz_0