From 23f5725853934fbd15085bb6dbf41f5bb2cc186c Mon Sep 17 00:00:00 2001 From: Austin Schuh Date: Sat, 2 Aug 2025 23:09:29 -0700 Subject: [PATCH] [bazel] Reduce number of windows builds in CI (#8145) Windows is proving to be a *lot* slower than everything else. I supect this is because we are building both arm64 and x86 every time, which ends up being twice the work. Leave those builds in place, but skip doing them in CI. This should be a 2x speedup when building Windows code. Signed-off-by: Austin Schuh --- .bazelrc | 5 +++++ .github/workflows/bazel.yml | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.bazelrc b/.bazelrc index 5adb1b78af..bedd56544a 100644 --- a/.bazelrc +++ b/.bazelrc @@ -67,3 +67,8 @@ common --define="WPILIB_VERSION=2025.424242.3.1-unknown" # List of artifact types to build in CI. # Anything else gets skipped to speed up CI. common:ci --repo_env="WPI_PUBLISH_CLASSIFIER_FILTER=headers,sources,linuxsystemcore,linuxsystemcoredebug,linuxsystemcorestatic,linuxsystemcorestaticdebug,linuxx86-64,linuxx86-64debug,linuxx86-64static,linuxx86-64staticdebug,osxuniversal,osxuniversaldebug,osxuniversalstatic,osxuniversalstaticdebug,windowsarm64,windowsarm64debug,windowsarm64static,windowsarm64staticdebug,windowsx86-64,windowsx86-64debug,windowsx86-64static,windowsx86-64staticdebug" + +# The 2 configurations for windows are very slow to build each time. +# Instead, skip the cross transition for ARM on x86, and the reverse on x86. +common:ci_windows_x86 --repo_env="WPI_PUBLISH_CLASSIFIER_FILTER=headers,sources,linuxsystemcore,linuxsystemcoredebug,linuxsystemcorestatic,linuxsystemcorestaticdebug,linuxx86-64,linuxx86-64debug,linuxx86-64static,linuxx86-64staticdebug,osxuniversal,osxuniversaldebug,osxuniversalstatic,osxuniversalstaticdebug,windowsx86-64,windowsx86-64debug,windowsx86-64static,windowsx86-64staticdebug" +common:ci_windows_arm --repo_env="WPI_PUBLISH_CLASSIFIER_FILTER=headers,sources,linuxsystemcore,linuxsystemcoredebug,linuxsystemcorestatic,linuxsystemcorestaticdebug,linuxx86-64,linuxx86-64debug,linuxx86-64static,linuxx86-64staticdebug,osxuniversal,osxuniversaldebug,osxuniversalstatic,osxuniversalstaticdebug,windowsarm64,windowsarm64debug,windowsarm64static,windowsarm64staticdebug" diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml index b6caf58538..b9929d415e 100644 --- a/.github/workflows/bazel.yml +++ b/.github/workflows/bazel.yml @@ -12,8 +12,8 @@ jobs: fail-fast: false matrix: include: - - { name: "Windows (native)", os: windows-2022, action: "test", config: "", } - - { name: "Windows (arm)", os: windows-2022, action: "build", config: "--config=windows_arm", } + - { name: "Windows (native)", os: windows-2022, action: "test", config: "--config=ci_windows_x86", } + - { name: "Windows (arm)", os: windows-2022, action: "build", config: "--config=windows_arm --config=ci_windows_arm", } name: "Build ${{ matrix.name }}" runs-on: ${{ matrix.os }}