Skip to content

Commit 0046f64

Browse files
authored
chore: install cast (#19050)
Install cast with `spartan/scripts/install_deps.sh` since its required to be available to deploy networks.
2 parents 37db75e + bf3d16b commit 0046f64

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/deploy-fisherman-network.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ jobs:
108108
terraform_version: "1.7.5"
109109
terraform_wrapper: false # Disable the wrapper that adds debug output, this messes with reading terraform output
110110

111-
- name: Install Foundry
112-
uses: foundry-rs/foundry-toolchain@v1
113-
114111
- name: Set environment variables
115112
run: |
116113
# Set environment variables for ignition-fisherman.env

.github/workflows/deploy-network.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ jobs:
117117
terraform_version: "1.7.5"
118118
terraform_wrapper: false # Disable the wrapper that adds debug output, this messes with reading terraform output
119119

120-
- name: Install Foundry
121-
uses: foundry-rs/foundry-toolchain@v1
122-
123120
- name: Deploy network
124121
id: deploy-network
125122
env:

spartan/scripts/install_deps.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@ if command -v gcloud &> /dev/null; then
120120
fi
121121
fi
122122

123+
FOUNDRY_VERSION="v1.4.1"
124+
if ! command -v cast &> /dev/null; then
125+
log "Installing cast (foundry $FOUNDRY_VERSION)..."
126+
curl -L https://foundry.paradigm.xyz | bash
127+
FOUNDRY_BIN_DIR="${FOUNDRY_DIR:-$HOME/.foundry}/bin"
128+
"$FOUNDRY_BIN_DIR/foundryup" -i "$FOUNDRY_VERSION"
129+
sudo mv "$FOUNDRY_BIN_DIR/cast" /usr/local/bin/cast
130+
sudo chmod +x /usr/local/bin/cast
131+
fi
123132

124133
require_cmd git
125134
require_cmd kubectl

0 commit comments

Comments
 (0)