Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions prysm/build_beacon_minimal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ OS_NAME=$(uname -s | tr '[:upper:]' '[:lower:]')
if [ "${OS_NAME}" == "darwin" ]; then
/opt/homebrew/bin/brew install go
/opt/homebrew/bin/go install github.com/bazelbuild/bazelisk@latest
else
else
sudo apt-get update
sudo apt-get upgrade -y
sudo apt install -y ca-certificates python3
Expand All @@ -19,7 +19,7 @@ case ${build_method} in
"go")
echo "Building with Go..."
go mod tidy

# Define ldflags for version information
ldflags=$(cat <<-END
-X 'github.com/prysmaticlabs/prysm/v5/runtime/version.gitCommit=$(git rev-parse HEAD)' \
Expand All @@ -28,11 +28,11 @@ case ${build_method} in
-X 'github.com/prysmaticlabs/prysm/v5/runtime/version.buildDateUnix=$(date +%s)'
END
)

# Build with blst_enabled and blst_portable to support both amd64 and arm64. The BLST library (used for
# cryptographic operations) needs specific CPU features.
CGO_ENABLED=1 go build \
-tags=blst_enabled,blst_portable \
-tags=blst_enabled,blst_portable,preset_minimal \
-ldflags "${ldflags}" \
-o _beacon-chain ./cmd/beacon-chain
;;
Expand Down
Loading