[CI] Pin the Rust TreeCore build to the resolved libtorch instead of interpreter discovery (#37696)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alex Nails
2026-09-05 15:30:32 -07:00
committed by GitHub
co-authored by Claude Opus 5
parent 77aee20259
commit 6a0c55fd6c
4 changed files with 11 additions and 63 deletions
+6 -1
View File
@@ -441,10 +441,15 @@ crate-type = ["cdylib"]
"PATH": "/usr/bin",
"CXXFLAGS": "-O2",
"RUSTFLAGS": "-Ctarget-cpu=x86-64",
"LIBTORCH_USE_PYTORCH": "1",
},
)
self.assertEqual(build.environment["LIBTORCH_USE_PYTORCH"], "1")
self.assertNotIn("LIBTORCH_USE_PYTORCH", build.environment)
self.assertEqual(build.environment["LIBTORCH"], str(torch_root))
self.assertEqual(build.environment["LIBTORCH_INCLUDE"], str(torch_root))
self.assertEqual(build.environment["LIBTORCH_LIB"], str(torch_root))
self.assertEqual(build.environment["LIBTORCH_CXX11_ABI"], "1")
self.assertEqual(build.environment["LIBTORCH_BYPASS_VERSION_CHECK"], "1")
self.assertIn(str(compat_header), build.environment["CXXFLAGS"])
self.assertIn(