All checks were successful
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 1m7s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m15s
sm-rpc / build (Debug, host.gcc) (push) Successful in 1m4s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 1m16s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 1m34s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 1m33s
sm-rpc / build (Release, host.gcc) (push) Successful in 1m23s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 1m30s
13 lines
389 B
Bash
13 lines
389 B
Bash
if ! bazel version; then
|
|
arch=$(uname -m)
|
|
if [ "$arch" == "aarch64" ]; then
|
|
arch="arm64"
|
|
fi
|
|
echo "Downloading $arch Bazel binary from GitHub releases."
|
|
curl -L -o $HOME/bin/bazel --create-dirs "https://github.com/bazelbuild/bazel/releases/download/7.1.1/bazel-7.1.1-linux-$arch"
|
|
chmod +x $HOME/bin/bazel
|
|
else
|
|
# Bazel is installed for the correct architecture
|
|
exit 0
|
|
fi
|