Use Foundry prebuilt image for solidity workflows

This commit is contained in:
openhands 2025-10-12 17:20:01 +00:00
parent 91f19539d9
commit 9637fe6df1
3 changed files with 8 additions and 20 deletions

View file

@ -9,7 +9,7 @@ trigger:
steps:
- name: foundry-suite
image: ubuntu:22.04
image: ghcr.io/foundry-rs/foundry:stable
environment:
FOUNDRY_DIR: /root/.foundry
PATH: /root/.foundry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
@ -17,10 +17,6 @@ steps:
- |
bash -lc '
set -euo pipefail
apt-get update
apt-get install -y curl git build-essential pkg-config libssl-dev
curl -L https://foundry.paradigm.xyz | bash
foundryup
cd onchain
forge --version
forge build --sizes

View file

@ -9,7 +9,7 @@ trigger:
steps:
- name: forge-suite
image: ubuntu:22.04
image: ghcr.io/foundry-rs/foundry:stable
environment:
FOUNDRY_DIR: /root/.foundry
PATH: /root/.foundry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
@ -18,10 +18,6 @@ steps:
- |
bash -lc '
set -euo pipefail
apt-get update
apt-get install -y curl git build-essential pkg-config libssl-dev
curl -L https://foundry.paradigm.xyz | bash
foundryup
cd onchain
forge build
forge test -vv --ffi
@ -41,7 +37,7 @@ trigger:
steps:
- name: forge-suite
image: ubuntu:22.04
image: ghcr.io/foundry-rs/foundry:stable
environment:
FOUNDRY_DIR: /root/.foundry
PATH: /root/.foundry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
@ -52,10 +48,6 @@ steps:
- |
bash -lc '
set -euo pipefail
apt-get update
apt-get install -y curl git build-essential pkg-config libssl-dev
curl -L https://foundry.paradigm.xyz | bash
foundryup
cd onchain
export BASE_SEPOLIA_RPC="$BASE_SEPOLIA_RPC"
forge build

View file

@ -8,7 +8,7 @@ trigger:
steps:
- name: fuzz
image: ubuntu:22.04
image: ghcr.io/foundry-rs/foundry:stable
environment:
FOUNDRY_DIR: /root/.foundry
PATH: /root/.foundry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
@ -16,10 +16,10 @@ steps:
- |
bash -lc '
set -euo pipefail
apt-get update
apt-get install -y curl git build-essential bc
curl -L https://foundry.paradigm.xyz | bash
foundryup
if ! command -v bc >/dev/null 2>&1; then
apt-get update
apt-get install -y bc
fi
cd onchain
forge --version
./analysis/run-fuzzing.sh BullMarketOptimizer runs=75