Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
126bb3fb
Unverified
Commit
126bb3fb
authored
Apr 16, 2024
by
clabby
Committed by
GitHub
Apr 16, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ci-builder): Build `foundry` from source (#10180)
* attempt `ci-builder` fix * `ci-builder` fix
parent
e6f2793f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
Dockerfile
ops/docker/ci-builder/Dockerfile
+4
-5
install-foundry.sh
ops/scripts/install-foundry.sh
+11
-3
versions.json
versions.json
+1
-1
No files found.
ops/docker/ci-builder/Dockerfile
View file @
126bb3fb
...
...
@@ -28,14 +28,13 @@ COPY ./versions.json ./versions.json
COPY
./ops/scripts/install-foundry.sh ./install-foundry.sh
RUN
curl
-L
https://foundry.paradigm.xyz | bash
RUN
source
$HOME
/.profile
&&
\
./install-foundry.sh
&&
\
cargo
install
svm-rs
RUN
source
$HOME
/.profile
&&
./install-foundry.sh
RUN
strip /root/.foundry/bin/forge
&&
\
strip /root/.foundry/bin/cast
&&
\
strip /root/.foundry/bin/anvil
&&
\
strip /root/.cargo/bin/svm
strip /root/.cargo/bin/svm
&&
\
strip /root/.cargo/bin/just
FROM
--platform=linux/amd64 debian:bullseye-slim as go-build
...
...
@@ -100,7 +99,7 @@ ENV NODE_MAJOR=20
RUN
/bin/sh
-c
set
-eux
;
\
apt-get update
;
\
apt-get
install
-y
--no-install-recommends
bash curl openssh-client git build-essential ca-certificates jq gnupg binutils-mips-linux-gnu python3 python3-pip
;
\
apt-get
install
-y
--no-install-recommends
bash curl openssh-client git build-essential ca-certificates jq gnupg binutils-mips-linux-gnu python3 python3-pip
python3-setuptools
;
\
mkdir
-p
/etc/apt/keyrings
;
\
curl
-fsSL
https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg
--dearmor
-o
/etc/apt/keyrings/nodesource.gpg
;
\
echo
"deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_
$NODE_MAJOR
.x nodistro main"
|
tee
/etc/apt/sources.list.d/nodesource.list
;
\
...
...
ops/scripts/install-foundry.sh
View file @
126bb3fb
...
...
@@ -39,11 +39,19 @@ if git rev-parse "$TAG" >/dev/null 2>&1; then
foundryup
-v
"
$TAG
"
else
echo
"Nightly tag doesn't exist! Building from source..."
foundryup
-C
"
$SHA
"
git checkout
"
$SHA
"
# Use native `cargo` build to avoid any rustc environment variables `foundryup` sets. We explicitly
# ignore chisel, as it is not a part of `ci-builder`.
cargo build
--bin
forge
--release
cargo build
--bin
cast
--release
cargo build
--bin
anvil
--release
mkdir
-p
~/.foundry/bin
mv
target/release/forge ~/.foundry/bin
mv
target/release/cast ~/.foundry/bin
mv
target/release/anvil ~/.foundry/bin
fi
# Remove the temporary foundry repo; Used just for checking the nightly tag's existence.
rm
-rf
"
$TMP_DIR
"
echo
"Removed tempdir @
$TMP_DIR
"
versions.json
View file @
126bb3fb
{
"abigen"
:
"v1.10.25"
,
"foundry"
:
"
bdc04c278f8ac716ed5fd3994bc0da841807b5cf
"
,
"foundry"
:
"
8513f619ca6781fe62d59b1bf2a8bb1bbab19927
"
,
"geth"
:
"v1.13.14"
,
"nvm"
:
"v20.9.0"
,
"slither"
:
"0.10.0"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment