-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
56 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: "Setup Honggfuzz" | ||
description: "Setup Honggfuzz" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/cache@v3 | ||
name: Cache Honggfuzz | ||
id: cache-honggfuzz | ||
with: | ||
path: | | ||
~/.cache/honggfuzz/ | ||
~/.local/share/honggfuzz/ | ||
key: honggfuzz-${{ runner.os }}-v0000-${{ env.HONGGFUZZ_VERSION }} | ||
- name: Install honggfuzz | ||
run: cargo install honggfuzz --version ${{ env.HONGGFUZZ_VERSION }} | ||
shell: bash | ||
- name: Install binutils-dev | ||
run: sudo apt-get install binutils-dev | ||
shell: bash | ||
- name: Install libunwind-dev | ||
run: sudo apt-get install libunwind-dev | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Test Fuzz Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
env: | ||
SOLANA_CLI_VERSION: 1.18.12 | ||
ANCHOR_VERSION: 0.29.0 | ||
HONGGFUZZ_VERSION: 0.5.55 | ||
|
||
jobs: | ||
run_fuzz_example: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/setup-rust/ | ||
- uses: ./.github/actions/setup-solana/ | ||
- uses: ./.github/actions/setup-honggfuzz/ | ||
id: rust-setup | ||
- uses: Swatinem/rust-cache@v2 | ||
name: Cache Rust and it's packages | ||
- name: Test Fuzz | ||
working-directory: examples/fuzz-tests/unchecked-arithmetic-0 | ||
run: cargo run --manifest-path ../../../Cargo.toml fuzz run fuzz_0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters