mirror of
https://github.com/openai/codex.git
synced 2026-11-08 20:40:33 +00:00
ci: preserve generic Windows hybrid execution
This commit is contained in:
@@ -286,7 +286,7 @@ 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
|
||||
if [[ "${RUNNER_OS:-}" == "Windows" && ! ( -n "${BUILDBUDDY_API_KEY:-}" && ( $windows_cross_compile -eq 1 || $windows_hybrid_execution -eq 1 ) ) ]]; then
|
||||
post_config_bazel_args+=("--shell_executable=${BAZEL_SH}")
|
||||
fi
|
||||
|
||||
|
||||
@@ -239,7 +239,10 @@ class RunBazelWithBuildBuddyTest(unittest.TestCase):
|
||||
"//codex-rs/arg0:arg0",
|
||||
)
|
||||
self.assertIn("--config=ci-windows-hybrid", command)
|
||||
self.assertIn("--shell_executable=/bin/bash", command)
|
||||
self.assertEqual(
|
||||
[arg for arg in command if arg.startswith("--shell_executable=")],
|
||||
["--shell_executable=/bin/bash"],
|
||||
)
|
||||
self.assertIn("--action_env=PATH=/usr/bin:/bin", command)
|
||||
self.assertIn("--host_action_env=PATH=/usr/bin:/bin", command)
|
||||
self.assertIn(r"--test_env=PATH=C:\runtime\bin", command)
|
||||
|
||||
Reference in New Issue
Block a user