Use Foundry prebuilt image for solidity workflows
This commit is contained in:
parent
91f19539d9
commit
9637fe6df1
3 changed files with 8 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue