mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
Package a single XDC binary for all networks and remove binary-switching logic from the CI/CD flow.
Changes:
- cicd/Dockerfile: build once and copy only /usr/bin/XDC
- cicd/entry.sh: validate NETWORK and remove runtime relink
- Makefile: make XDC-devnet-local depend on XDC; remove constants file swap
- common/constants: delete duplicated constants.go.{testnet,devnet,local}
Impact:
- network differences are now driven by runtime config, not separate binaries
20 lines
433 B
Bash
Executable file
20 lines
433 B
Bash
Executable file
#!/bin/bash
|
|
|
|
case "$NETWORK" in
|
|
"")
|
|
echo "NETWORK environment variable must be set. Allowed values: mainnet/testnet/devnet/local"
|
|
exit 1
|
|
;;
|
|
mainnet|testnet|devnet|local)
|
|
;;
|
|
*)
|
|
echo "Invalid NETWORK: $NETWORK. Allowed: mainnet/testnet/devnet/local"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
echo "Select to run $NETWORK..."
|
|
cp -n /work/"$NETWORK"/* /work
|
|
|
|
echo "Start Node..."
|
|
/work/start.sh
|