aboutsummaryrefslogtreecommitdiff
path: root/.github/install_bazel.sh
blob: 2b1f4e726ccccb5a3245aa5cc7a000dcce2a00f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
if ! bazel version; then
  arch=$(uname -m)
  if [ "$arch" == "aarch64" ]; then
    arch="arm64"
  fi
  echo "Installing wget and downloading $arch Bazel binary from GitHub releases."
  yum install -y wget
  wget "https://github.com/bazelbuild/bazel/releases/download/6.3.0/bazel-6.3.0-linux-$arch" -O /usr/local/bin/bazel
  chmod +x /usr/local/bin/bazel
else
  # bazel is installed for the correct architecture
  exit 0
fi