-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: cleanup make deps to be OS aware (#534)
use backticks Fix for weird git error Go away git
- Loading branch information
1 parent
3eec97d
commit ef2ea4a
Showing
113 changed files
with
8,682 additions
and
18,838 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 @@ | ||
/cache |
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
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,13 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y make curl git software-properties-common jq \ | ||
&& add-apt-repository -y ppa:longsleep/golang-backports \ | ||
&& add-apt-repository -y ppa:ethereum/ethereum \ | ||
&& apt-get update \ | ||
&& apt-get install -y golang-1.22 ethereum \ | ||
&& curl -L https://foundry.paradigm.xyz | bash \ | ||
&& /root/.foundry/bin/foundryup | ||
|
||
RUN cp -R /root/.foundry/bin/* /usr/local/bin/ | ||
|
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 |
---|---|---|
@@ -1,19 +1,46 @@ | ||
|
||
CONTAINER_NAME = eigenlayer-contracts | ||
|
||
.PHONY: install-hooks | ||
install-hooks: | ||
cp scripts/pre-commit.sh .git/hooks/pre-commit | ||
cp bin/pre-commit.sh .git/hooks/pre-commit | ||
|
||
.PHONY: deps | ||
deps: install-hooks | ||
brew install libusb | ||
go install github.com/ethereum/go-ethereum/cmd/abigen@latest | ||
curl -L https://foundry.paradigm.xyz | bash | ||
.PHONY: install-deps | ||
install-deps: | ||
./bin/install-deps.sh | ||
foundryup | ||
|
||
.PHONY: deps | ||
deps: install-hooks install-deps | ||
|
||
.PHONY: compile | ||
compile: | ||
forge b | ||
|
||
.PHONY: bindings | ||
bindings: compile | ||
./scripts/compile-bindings.sh | ||
./bin/compile-bindings.sh | ||
|
||
.PHONY: all | ||
all: compile bindings | ||
|
||
gha: | ||
git config --global --add safe.directory "*" | ||
forge install | ||
forge b | ||
./bin/compile-bindings.sh | ||
|
||
docker: | ||
docker build --progress=plain -t ${CONTAINER_NAME}:latest . | ||
|
||
compile-in-docker: | ||
docker run -v $(PWD):/build -w /build --rm -it ${CONTAINER_NAME}:latest bash -c "make compile" | ||
|
||
bindings-in-docker: | ||
docker run -v $(PWD):/build -w /build --rm -it ${CONTAINER_NAME}:latest bash -c "make bindings" | ||
|
||
all-in-docker: | ||
docker run -v $(PWD):/build -w /build --rm -it ${CONTAINER_NAME}:latest bash -c "make all" | ||
|
||
gha-docker: | ||
docker run -v $(PWD):/build -w /build --rm -i ${CONTAINER_NAME}:latest bash -c "make gha" |
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
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
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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
OS=$(uname -s | tr '[:upper:]' '[:lower:]') | ||
|
||
if [[ "$OS" == "linux" ]]; then | ||
sudo apt-get update | ||
sudo apt-get install -y make curl git software-properties-common jq | ||
sudo add-apt-repository -y ppa:ethereum/ethereum | ||
sudo apt-get update | ||
sudo apt-get install abigen | ||
curl -L https://foundry.paradigm.xyz | bash | ||
elif [[ "$OS" == "darwin" ]]; then | ||
brew tap ethereum/ethereum | ||
brew install libusb ethereum | ||
curl -L https://foundry.paradigm.xyz | bash | ||
else | ||
echo "Unsupported OS: $OS" | ||
exit 1 | ||
fi |
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.