-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# Check if foundry is installed | ||
if ! command -v $HOME/.foundry/bin/forge &>/dev/null; then | ||
# Install foundryup | ||
curl -L https://foundry.paradigm.xyz | bash | ||
# Install foundry | ||
$HOME/.foundry/bin/foundryup -v nightly-de33b6af53005037b463318d2628b5cfcaf39916 # Stable version | ||
fi | ||
|
||
# Check if rustup is installed | ||
if ! command -v rustup &>/dev/null; then | ||
# Install rustup | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
fi | ||
|
||
# Update rustup | ||
$HOME/.cargo/bin/rustup update stable | ||
# Install soldeer | ||
$HOME/.cargo/bin/cargo install soldeer | ||
# Update dependencies with soldeer | ||
$HOME/.cargo/bin/soldeer update | ||
# Run forge build | ||
$HOME/.foundry/bin/forge build | ||
|
||
# Check if rustup is installed | ||
if ! command -v jq &>/dev/null; then | ||
# Install jq | ||
brew install jq | ||
fi |