Skip to content

Commit 21a016b

Browse files
committed
chore: direct fndry dl
1 parent 5ca6038 commit 21a016b

File tree

1 file changed

+27
-9
lines changed

1 file changed

+27
-9
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,33 @@ jobs:
2323
cache: 'yarn'
2424
cache-dependency-path: './sdk/yarn.lock'
2525

26-
- name: Install Foundry
26+
- name: Install Foundry (direct download)
2727
run: |
28-
curl -L https://foundry.paradigm.xyz | bash
29-
~/.foundry/bin/foundryup
30-
echo "$HOME/.foundry/bin" >> $GITHUB_PATH
28+
# Create directories
29+
mkdir -p $HOME/.foundry/bin
30+
31+
# Download latest foundry binaries directly
32+
FOUNDRY_VERSION="nightly"
33+
DOWNLOAD_URL="https://github.com/foundry-rs/foundry/releases/download/$FOUNDRY_VERSION/foundry_${FOUNDRY_VERSION}_linux_amd64.tar.gz"
34+
35+
echo "Downloading from $DOWNLOAD_URL"
36+
curl -L $DOWNLOAD_URL | tar xz -C $HOME/.foundry/bin
37+
38+
# Set permissions
39+
chmod +x $HOME/.foundry/bin/forge
40+
chmod +x $HOME/.foundry/bin/cast
41+
chmod +x $HOME/.foundry/bin/anvil
3142
43+
# Add to PATH
44+
echo "$HOME/.foundry/bin" >> $GITHUB_PATH
45+
export PATH="$HOME/.foundry/bin:$PATH"
46+
3247
- name: Verify Foundry installation
3348
run: |
34-
ls -la ~/.foundry/bin/
35-
echo "PATH=$PATH"
36-
~/.foundry/bin/anvil --version
49+
ls -la $HOME/.foundry/bin/
50+
export PATH="$HOME/.foundry/bin:$PATH"
51+
which anvil || echo "anvil not in PATH"
52+
$HOME/.foundry/bin/anvil --version
3753
3854
- name: Install dependencies
3955
run: yarn install
@@ -47,8 +63,10 @@ jobs:
4763
- name: Test
4864
run: |
4965
export PATH="$HOME/.foundry/bin:$PATH"
50-
which anvil
51-
anvil --version
66+
# Create dummy .env if it doesn't exist
67+
touch .env
68+
echo "IS_TESTING=true" > .env
69+
$HOME/.foundry/bin/anvil --version
5270
yarn test
5371
env:
5472
CI: true

0 commit comments

Comments
 (0)