Skip to content
SaeHie Park edited this page Aug 7, 2020 · 4 revisions

Install from binary

Refer https://docs.bazel.build/versions/3.4.0/install-ubuntu.html#install-with-installer-ubuntu

wget https://github.com/bazelbuild/bazel/releases/download/3.4.1/bazel-3.4.1-linux-arm64
chmod +x bazel-3.4.1-linux-arm64
./bazel-3.4.1-linux-arm64 --user

Clean and purge outputs

bazel clean --expunge

Set cache folder

export TEST_TMPDIR=/path/to/directory

Limit resource

file : ~/.bazelrc

startup --batch_cpu_scheduling --io_nice_level 1
build --jobs 1 --local_ram_resources=HOST_RAM*0.5
test --jobs 1

Clone this wiki locally