Last active
July 28, 2025 13:20
-
-
Save miohtama/ea0cb4d44094b888a48d231945f89cad to your computer and use it in GitHub Desktop.
Foundry local development with master
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Set up a founry for local development, using faster dev profile for compilation | |
# | |
PROFILE=dev | |
# You need to delete the existing forge etc. commands, because even | |
# if the cargo install says "replacing" they did not really seem to replace and | |
# some old version was left around. | |
rm /Users/moo/.foundry/bin/forge | |
curl -L https://foundry.paradigm.xyz | bash | |
git clone https://github.com/foundry-rs/foundry.git ~/code/foundry/master | |
cd ~/code/foundry/master | |
# install Forge | |
cargo install --path ./crates/forge --profile $PROFILE --force --locked | |
# install Cast | |
cargo install --path ./crates/cast --profile $PROFILE --force --locked | |
# install Anvil | |
cargo install --path ./crates/anvil --profile $PROFILE --force --locked | |
# install Chisel | |
cargo install --path ./crates/chisel --profile $PROFILE --force --locked | |
# Then you can run as | |
~/.cargo/bin/forge --version | |
# forge Version: 1.3.0-dev | |
# Commit SHA: 88b14a1af73ba5e00c26627dfe7ee7d440facb12 | |
# Build Timestamp: 2025-07-28T12:56:56.345873000Z (1753707416) | |
# Build Profile: debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment