Skip building non-test targets on all macOS and Windows Bazel CI jobs. Move --build_tests_only from test:ci-windows-msvc to test:remote-cache so that macOS and Windows ClangCL CI jobs also skip compiling and linking benchmark binaries that are not executed by bazel test. PiperOrigin-RevId: 1013094787
diff --git a/.bazelrc b/.bazelrc index 0811c60..3e964e4 100644 --- a/.bazelrc +++ b/.bazelrc
@@ -45,10 +45,6 @@ build:windows-base --host_per_file_copt=external/.*@/w,/O1 common:windows-msvc --config=windows-base -test:ci-windows-msvc --config=windows-msvc - -# Avoid building benchmarks in MSVC, as an optimization for our slowest builds. -test:ci-windows-msvc --build_tests_only common:windows-clangcl --config=windows-base build:windows-clangcl --compiler=clang-cl @@ -100,6 +96,8 @@ build:remote-cache --remote_retries=20 --remote_retry_max_delay=60s # Use more parallel jobs for remote cache lookups and tests. build:remote-cache --jobs=HOST_CPUS*4 +# Avoid building benchmarks on non-RBE CI builds (macOS and Windows). +test:remote-cache --build_tests_only build:remote-base --define=EXECUTOR=remote build:remote-base --remote_timeout=1200 --bes_timeout=600s
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03f9ea5..95f19fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml
@@ -156,10 +156,10 @@ config: # windows-msvc-2022-cxx{17,20}-{dbg,opt}-bazel.cfg - name: MSVC 2022 - toolchain: ci-windows-msvc + toolchain: windows-msvc # windows-msvc-2022-alternate-options-cxx{17,20}-dbg-bazel.cfg (dbg only) - name: MSVC 2022 Alternate Options - toolchain: ci-windows-msvc + toolchain: windows-msvc alternate_options: true compilation_modes: '["dbg"]' # windows-clangcl-cxx17-fastbuild-bazel.cfg