From 42029ed2c6947474a1755bdcae5ff178ea4b6ad9 Mon Sep 17 00:00:00 2001 From: Jonathan Tatum Date: Tue, 9 Jan 2024 15:23:31 -0800 Subject: [PATCH] Tune Bazel for GCB. Set parallelism and memory limits. PiperOrigin-RevId: 597060690 --- cloudbuild.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 64f66a73c..c5e448817 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -10,6 +10,8 @@ steps: - '--distdir=/bazel-distdir' - '--show_timestamps' - '--test_tag_filters=-benchmark' + - '--jobs=HOST_CPUS*.5' + - '--local_ram_resources=HOST_RAM*.4' id: gcc-9 waitFor: ['-'] - name: 'gcr.io/cel-analysis/gcc-9:latest' @@ -26,6 +28,8 @@ steps: - '--distdir=/bazel-distdir' - '--show_timestamps' - '--test_tag_filters=-benchmark' + - '--jobs=HOST_CPUS*.5' + - '--local_ram_resources=HOST_RAM*.4' id: clang-11 waitFor: ['-'] timeout: 1h