mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
Fix CI: Use ava-labs/avalanchego for release downloads
- luxfi/node doesn't have releases, use ava-labs/avalanchego - Strip leading 'v' from LUX_VERSION to avoid double 'v' - Update all download URLs and git clone to use correct repo - Successfully tested locally - downloads and installs correctly - This should finally fix all e2e test Install Lux Release failures
This commit is contained in:
@@ -12,11 +12,12 @@ EVM_PATH=$(
|
||||
source "$EVM_PATH"/scripts/constants.sh
|
||||
|
||||
# Set LUXD_VERSION from LUX_VERSION if not already set
|
||||
LUXD_VERSION=${LUXD_VERSION:-${LUX_VERSION}}
|
||||
# Remove leading 'v' if present to avoid double 'v' in URLs
|
||||
LUXD_VERSION=${LUXD_VERSION:-${LUX_VERSION#v}}
|
||||
|
||||
############################
|
||||
# download luxd
|
||||
# https://github.com/luxfi/node/releases
|
||||
# download luxd/avalanchego
|
||||
# https://github.com/ava-labs/avalanchego/releases
|
||||
GOARCH=$(go env GOARCH)
|
||||
GOOS=$(go env GOOS)
|
||||
BASEDIR=${BASEDIR:-"/tmp/luxd-release"}
|
||||
@@ -49,12 +50,12 @@ fi
|
||||
|
||||
# For now, we'll build from source if the binary isn't available
|
||||
echo "Checking for pre-built binary..."
|
||||
DOWNLOAD_URL="https://github.com/luxfi/node/releases/download/v${LUXD_VERSION}/avalanchego-linux-${GOARCH}-v${LUXD_VERSION}.tar.gz"
|
||||
DOWNLOAD_URL="https://github.com/ava-labs/avalanchego/releases/download/v${LUXD_VERSION}/avalanchego-linux-${GOARCH}-v${LUXD_VERSION}.tar.gz"
|
||||
|
||||
if [[ "$GOOS" == "darwin" ]]; then
|
||||
DOWNLOAD_URL="https://github.com/luxfi/node/releases/download/v${LUXD_VERSION}/avalanchego-macos-v${LUXD_VERSION}.zip"
|
||||
DOWNLOAD_URL="https://github.com/ava-labs/avalanchego/releases/download/v${LUXD_VERSION}/avalanchego-macos-v${LUXD_VERSION}.zip"
|
||||
elif [[ "$GOOS" == "windows" ]]; then
|
||||
DOWNLOAD_URL="https://github.com/luxfi/node/releases/download/v${LUXD_VERSION}/avalanchego-windows-${GOARCH}-v${LUXD_VERSION}.zip"
|
||||
DOWNLOAD_URL="https://github.com/ava-labs/avalanchego/releases/download/v${LUXD_VERSION}/avalanchego-windows-${GOARCH}-v${LUXD_VERSION}.zip"
|
||||
fi
|
||||
|
||||
echo "Attempting to download from: $DOWNLOAD_URL"
|
||||
@@ -91,7 +92,7 @@ if command -v curl &> /dev/null; then
|
||||
echo "Building from source..."
|
||||
TEMP_DIR="${BASEDIR}/build_tmp"
|
||||
rm -rf "$TEMP_DIR"
|
||||
git clone --depth 1 --branch "v${LUXD_VERSION}" https://github.com/luxfi/node.git "$TEMP_DIR"
|
||||
git clone --depth 1 --branch "v${LUXD_VERSION}" https://github.com/ava-labs/avalanchego.git "$TEMP_DIR"
|
||||
|
||||
cd "$TEMP_DIR"
|
||||
./scripts/build.sh
|
||||
|
||||
Reference in New Issue
Block a user