ci: enforce the hermetic Windows Bazel toolchain

This commit is contained in:
Adam Perry
2026-06-22 19:35:44 +00:00
parent 7835d1dc10
commit c1af3a2c5b
26 changed files with 1574 additions and 818 deletions
+8
View File
@@ -2,6 +2,10 @@
set -euo pipefail
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${script_dir}/sanitize-bazel-windows-environment.sh"
sanitize_bazel_windows_environment
print_failed_bazel_test_logs=0
print_failed_bazel_action_summary=0
remote_download_toplevel=0
@@ -282,6 +286,10 @@ if [[ "${RUNNER_OS:-}" == "Windows" && -n "${BUILDBUDDY_API_KEY:-}" && ( $window
fi
fi
if [[ "${RUNNER_OS:-}" == "Windows" && ! ( -n "${BUILDBUDDY_API_KEY:-}" && ( $windows_cross_compile -eq 1 || "$ci_config" == "ci-windows-argument-lint" ) ) ]]; then
post_config_bazel_args+=("--shell_executable=${BAZEL_SH}")
fi
if [[ "${RUNNER_OS:-}" == "Windows" && $windows_cross_compile -eq 1 && -z "${BUILDBUDDY_API_KEY:-}" ]]; then
# The Windows cross-compile config depends on authenticated remote
# execution. When credentials are unavailable, spell out the equivalent