You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
424 B

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