mirror of
https://github.com/luxfi/evmgpu.git
synced 2026-10-30 16:57:11 +00:00
26 lines
702 B
Bash
Executable File
26 lines
702 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Setting up CI environment..."
|
|
|
|
# Display Go version
|
|
echo "Go version:"
|
|
go version
|
|
|
|
# Configure GOPRIVATE for all luxfi packages
|
|
# shellcheck disable=SC2125 # The asterisk is intentional Go module syntax, not a glob
|
|
export GOPRIVATE='github.com/luxfi/*'
|
|
export GONOSUMDB='github.com/luxfi/*'
|
|
|
|
# Configure git to use GITHUB_TOKEN for authentication
|
|
if [ -n "$GITHUB_TOKEN" ]; then
|
|
echo "Configuring git credentials..."
|
|
git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
|
|
fi
|
|
|
|
# Download dependencies from published packages
|
|
echo "Downloading dependencies..."
|
|
go mod download
|
|
|
|
echo "CI environment setup complete."
|