Skip to content

build(cli): publish Windows x64 binaries with focused CI coverage - #5167

Closed
AndyZHENG0715 wants to merge 2 commits into
hindsightai:mainfrom
AndyZHENG0715:windows-cli-release
Closed

AndyZHENG0715 wants to merge 2 commits into
hindsightai:mainfrom
AndyZHENG0715:windows-cli-release

Conversation

@AndyZHENG0715

Copy link
Copy Markdown

Summary

Refs #2415. I understand the Windows binary request was closed as not planned; this offers a narrowly scoped packaging change for consideration, without introducing a second CLI implementation or installer.

The existing Windows embed smoke job already builds hindsight.exe from this Rust crate. This PR makes that binary available in the normal release assets and adds a focused build check independent of the heavier embed/API setup.

  • Add x86_64-pc-windows-msvc to the existing release matrix and attach hindsight-windows-amd64.exe to the GitHub release.
  • Use Git Bash explicitly for artifact staging on the Windows runner, and skip Unix executable-bit changes there.
  • Build the Windows release binary when the CLI, generated Rust client, or relevant workflow changes; check --version and the retain/recall/reflect command entry points, then upload the executable as a CI artifact.
  • Document manual installation from PowerShell in the current and next CLI docs, including the existing Unix-only background-daemon limitation.

No Rust application code, API behavior, credentials, memory-bank behavior, package versions, or existing platform targets are changed. No new installer or Rust dependency is introduced. Windows ARM64 and background daemon support are outside this PR's scope.

Validation

  • actionlint passes for both modified/added workflows.

  • Workflow YAML parses; the existing four release targets remain alongside Windows x64, and Windows artifact names match the release download/staging steps.

  • git diff --check passes.

  • Native Windows build succeeded on windows-latest; the release executable passed --version and retain/recall/reflect help checks.

  • Downloaded that artifact and ran it on a local Windows host: hindsight 0.10.2, recall command help, and an authenticated read-only Cloud recall all succeeded. No Cloud key or memory contents are included here.

  • The artifact is available from the linked run so maintainers can inspect it without rebuilding. The full tag-triggered release pipeline is not being executed just to test this packaging change, because that would also publish unrelated packages/images.

Maintenance scope

The added check uses a standard Windows GitHub-hosted runner and the existing Rust toolchain/action versions. It requires no API keys, Hindsight server, Python environment, PostgreSQL, or LLM calls. The implementation remains the same Rust CLI on all platforms.

Copilot AI balanced review requested due to automatic review settings October 3, 2026 04:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the core Core Hindsight service (API, engine, DB, clients, CLI, UI, docs) label Oct 3, 2026

@koriyoshi2041 koriyoshi2041 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head dc0f3f02. I traced the release matrix through artifact upload/download and final release-assets staging: the .exe name is preserved consistently, the Windows runner uses Bash only for staging, and the publish job still assembles on Ubuntu. The native windows-latest job passes the release build plus --version and retain/recall/reflect help checks, and the full hosted matrix is green. I did not find a packaging or CLI-entrypoint gap in this scope.

@nicoloboschi

Copy link
Copy Markdown
Collaborator

Thanks for this! We no longer merge pull requests from outside the team (see CONTRIBUTING.md), so I'm closing this one.

If the problem still affects you, please open an issue with steps to reproduce and we'll take it from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core Hindsight service (API, engine, DB, clients, CLI, UI, docs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants