ci: merge Unix runtime libs into rusty_v8 sandbox artifacts

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Channing Conger
2026-05-07 01:02:08 +00:00
parent 41fadb902b
commit 9f767cd3fb
5 changed files with 32 additions and 14 deletions

View File

@@ -35,10 +35,10 @@ class RustyV8BazelTest(unittest.TestCase):
),
)
self.assertEqual(
"rusty_v8_ptrcomp_sandbox_release_x86_64-pc-windows-msvc.lib.gz",
"librusty_v8_ptrcomp_sandbox_release_x86_64-pc-windows-msvc.a.gz",
rusty_v8_bazel.staged_archive_name(
"x86_64-pc-windows-msvc",
Path("v8.lib"),
Path("v8.a"),
rusty_v8_bazel.SANDBOX_ARTIFACT_PROFILE,
),
)
@@ -57,6 +57,21 @@ class RustyV8BazelTest(unittest.TestCase):
),
)
def test_needs_merged_runtime_archive(self) -> None:
for target in [
"x86_64-apple-darwin",
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
]:
self.assertTrue(rusty_v8_bazel.needs_merged_runtime_archive(target, Path("v8.a")))
self.assertFalse(
rusty_v8_bazel.needs_merged_runtime_archive(
"x86_64-pc-windows-msvc",
Path("v8.a"),
)
)
@patch("rusty_v8_bazel.ensure_bazel_output_files")
@patch("rusty_v8_bazel.subprocess.run")
def test_host_runnable_bazel_output_file_selects_runnable_candidate(