seanshpark / macOS

problems and solutions
MIT License
0 stars 0 forks source link

bazel #12

Open seanshpark opened 2 years ago

seanshpark commented 2 years ago

install and use bazel on Mac

seanshpark commented 2 years ago

https://docs.bazel.build/versions/main/install-os-x.html

https://github.com/bazelbuild/bazel/releases

seanshpark commented 2 years ago
export BAZEL_DOWNLOAD=https://github.com/bazelbuild/bazel/releases/download
export BAZEL_VERSION=4.2.2

curl -fLO "${BAZEL_DOWNLOAD}/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-darwin-arm64.sh"
chmod +x "bazel-${BAZEL_VERSION}-installer-darwin-arm64.sh"

./bazel-${BAZEL_VERSION}-installer-darwin-arm64.sh \
  --bin=$HOME/ssd/bin --base=$HOME/ssd/.bazel
seanshpark commented 2 years ago

Set temporary files folder

export TEST_TMPDIR=/Volumes/HDD/var_temp