YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(cli): pass short Windows target path to Cargo (#7399)
Louis Beaumontf5f91c95a872
diff --git a/.github/scripts/release-workflows.test.ts b/.github/scripts/release-workflows.test.tsindex fe4f9eea3..efb3678df 100644--- a/.github/scripts/release-workflows.test.ts+++ b/.github/scripts/release-workflows.test.ts@@ -114,6 +114,19 @@ test("all Windows native dependency builds select the shared Ninja setup", () =>expect(readFileSync(join(root, ".github/scripts/setup-ninja-windows.ps1"), "utf8")).toContain('"CMAKE_GENERATOR=Ninja"');});+test("Windows CLI compiles through the short target path without moving smoke probe outputs", () => {+ const job = readYaml(".github/workflows/release-cli.yml").jobs["build-windows"];+ const build = job.steps.find((step: any) => step.name === "Build CLI");+ expect(build.env.CARGO_TARGET_DIR).toBe("C:/t");+ const junction = job.steps.find((step: any) => step.name === "Shorten target dir to avoid MAX_PATH");+ expect(junction.run).toContain('$shortDir = "C:\\t"');+ expect(junction.run).toContain("mklink /J $targetDir $shortDir");+ expect(job.env?.CARGO_TARGET_DIR).toBeUndefined();+ const smoke = job.steps.find((step: any) => step.name === "Build + run ort-smoke natively; stage for the SDE job");+ expect(smoke.env?.CARGO_TARGET_DIR).toBeUndefined();+ expect(smoke.run).toContain('.github/ci/ort-smoke/target/debug/ort-smoke.exe');+});+test("completion reports every platform even if one is failed or skipped", () => {const gate = enterprise.jobs["enterprise-complete"];expect(gate.if).toBe("always()");diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.ymlindex fe4820719..6d584d16d 100644--- a/.github/workflows/release-cli.yml+++ b/.github/workflows/release-cli.yml@@ -389,6 +389,9 @@ jobs:- name: Build CLIenv:+ # Cargo must pass the short path to CMake; the target junction alone+ # leaves nested Vulkan compiler probes using the long checkout path.+ CARGO_TARGET_DIR: "C:/t"CARGO_PROFILE_RELEASE_STRIP: "none"CARGO_PROFILE_RELEASE_PANIC: "abort"CARGO_PROFILE_RELEASE_INCREMENTAL: "false"