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): use Ninja for Windows native dependencies (#7397)
Louis Beaumont812c2d581d68
diff --git a/.github/scripts/release-workflows.test.ts b/.github/scripts/release-workflows.test.tsindex fff794536..fe4f9eea3 100644--- a/.github/scripts/release-workflows.test.ts+++ b/.github/scripts/release-workflows.test.ts@@ -105,6 +105,12 @@ test("all Windows native dependency builds select the shared Ninja setup", () =>(step: any) => step.name === "Configure Ninja for Windows native dependencies",);expect(enterpriseStep.run).toBe("./.github/scripts/setup-ninja-windows.ps1");+ const cliSteps = readYaml(".github/workflows/release-cli.yml").jobs["build-windows"].steps;+ const cliNinjaIndex = cliSteps.findIndex((step: any) => step.name === "Configure Ninja for Windows native dependencies");+ expect(cliNinjaIndex).toBeGreaterThan(-1);+ expect(cliSteps[cliNinjaIndex].run).toBe("./.github/scripts/setup-ninja-windows.ps1");+ expect(cliSteps[cliNinjaIndex].shell).toBe("pwsh");+ expect(cliNinjaIndex).toBeLessThan(cliSteps.findIndex((step: any) => step.name === "Build CLI"));expect(readFileSync(join(root, ".github/scripts/setup-ninja-windows.ps1"), "utf8")).toContain('"CMAKE_GENERATOR=Ninja"');});diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.ymlindex 40b79669e..fe4820719 100644--- a/.github/workflows/release-cli.yml+++ b/.github/workflows/release-cli.yml@@ -372,6 +372,10 @@ jobs:bun scripts/setup_openblas.js"OPENBLAS_PATH=${{ github.workspace }}/apps/screenpipe-app-tauri/src-tauri/openblas" | Out-File -FilePath $env:GITHUB_ENV -Append+ - name: Configure Ninja for Windows native dependencies+ shell: pwsh+ run: ./.github/scripts/setup-ninja-windows.ps1+- name: Shorten target dir to avoid MAX_PATHshell: pwshrun: |