Skip to content

Commit

Permalink
💚 Pipeline Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lukacan committed Oct 2, 2024
1 parent 6e030ab commit b5f4cfc
Show file tree
Hide file tree
Showing 11 changed files with 335 additions and 341 deletions.
24 changes: 24 additions & 0 deletions .github/actions/setup-honggfuzz/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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 }}-${{ env.HONGGFUZZ_VERSION }}

- name: Install Dependencies (binutils-dev & libunwind-dev)
run: |
sudo apt-get update
sudo apt-get install -y binutils-dev libunwind-dev
shell: bash

- name: Install Honggfuzz
run: cargo install honggfuzz --version ${{ env.HONGGFUZZ_VERSION }}
shell: bash
31 changes: 0 additions & 31 deletions .github/actions/setup-solana/action.yaml

This file was deleted.

25 changes: 17 additions & 8 deletions .github/actions/setup-trident/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,30 @@ runs:
using: "composite"
steps:
- uses: actions/cache@v3
name: Cache Trident
name: Cache Trident and Cargo Artifacts
id: cache-trident
with:
path: |
~/.cache/trident/
~/.local/share/trident/
key: trident-${{ runner.os }}-v0000-${{ env.TRIDENT_COMMIT_HASH }}
~/.cargo/bin
~/.cargo/registry
~/.cargo/git
target
key: trident-cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.TRIDENT_COMMIT_HASH }}

- name: Clone Trident at specified commit
run: |
git clone https://github.com/Ackee-Blockchain/trident.git
cd trident
git checkout ${{ env.TRIDENT_COMMIT_HASH }}
if ! command -v trident &> /dev/null; then
git clone --depth 1 https://github.com/Ackee-Blockchain/trident.git
cd trident
git checkout ${{ env.TRIDENT_COMMIT_HASH }}
cargo install --path crates/cli
else
echo "Trident is already installed, skipping installation."
fi
shell: bash

- name: Install Trident
run: cargo install --path crates/cli
run: |
cd trident
cargo install --path crates/cli
shell: bash
10 changes: 3 additions & 7 deletions .github/workflows/run-fuzz-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ on:
pull_request:

env:
SOLANA_CLI_VERSION: 1.18.18
HONGGFUZZ_VERSION: 0.5.56
TRIDENT_COMMIT_HASH: eb8f647104209323b53e3637d3d3c5b7d140d368 # Set desired commit hash here
TRIDENT_COMMIT_HASH: eb8f647104209323b53e3637d3d3c5b7d140d368 # Desired Trident commit hash

jobs:
simple-cpi-6:
fuzz_0:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
Expand All @@ -25,9 +24,6 @@ jobs:
- name: Setup Rust Environment
uses: ./.github/actions/setup-rust/

- name: Setup Solana Environment
uses: ./.github/actions/setup-solana/

- name: Setup Trident with Specified Commit
uses: ./.github/actions/setup-trident/
with:
Expand All @@ -38,4 +34,4 @@ jobs:
id: rust-setup

- name: Run Fuzz Tests
run: trident fuzz run fuzz_0
run: trident fuzz run --with-exit-code fuzz_0
Loading

0 comments on commit b5f4cfc

Please sign in to comment.