Repository navigation
ci(release): produce ag-rledger as a release artifact - #1600
Conversation
The agent-native CLI (ag-rledger, gated behind the ag-rledger feature) wasn't built or shipped in releases — only rledger + rledger-lsp were. Build it in all three release paths (PGO Unix, PGO Windows, cross/native) the same way as rledger-lsp (feature-gated, no PGO) and include it in the Unix tar.gz + Windows zip archives. Build invocation verified with cargo check; mirrors the existing LSP build/package pattern.
There was a problem hiding this comment.
Pull request overview
Adds the agent-native ag-rledger CLI binary to the release build pipeline so it is built for all release targets and included in the published release archives alongside rledger and rledger-lsp.
Changes:
- Build
ag-rledgeras a separate, feature-gated binary (--no-default-features --features ag-rledger) in the PGO Unix, PGO Windows, and non-PGO (cross/native) build paths. - Include
ag-rledger/ag-rledger.exein the Unixtar.gzand Windowsziprelease archives.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Thanks — but the agent-native binary is exercised in normal CI: What is release-only is cross-target builds (musl / Windows-ARM / etc.) — but that is true of |
…1601) * ci(release): enable mimalloc in release rledger binaries (-7% load) Follow-up to #1599 (mimalloc opt-in feature) + #1600. The release builds use --no-default-features, so the opt-in feature wasn't reaching shipped binaries. Add --features mimalloc to the rledger builds (PGO Unix/Windows + native non-cross) so released binaries get the ~7% lower-load allocator win. Cross-compiled targets are intentionally excluded: mimalloc's vendored C build isn't validated under cross here, and a release shouldn't hinge on it — they ship without the allocator. Feature resolution verified locally (cargo build --no-default-features --features mimalloc resolves at the virtual workspace root); rledger output is unchanged (allocator-only). * ci(release): clarify mimalloc cross-vs-native comments (review)
* docs(readme): explain ag-rledger (agent-native CLI) next to the MCP server Adds an 'AI & agents' section documenting the two AI integration surfaces: the MCP server (interactive assistants) and ag-rledger (headless agents / pipelines, structured JSON envelopes). ag-rledger now ships in release archives (#1600) but was undocumented. Envelope shape + example taken from the binary's integration test (ok / exit_code / result.data / next_action). * docs(readme): fix ag-rledger example per review - build command: add --no-default-features (matches release; avoids pulling wasmtime/cranelift via the default python-plugin-wasm feature) - example: use 'check --json' (result.data is only structured when the inner command emits JSON) and make the envelope valid JSON (drop trailing ', …') - subcommands: 'extract' (the real import command, alias x), not 'import'
What
Builds the agent-native CLI (
ag-rledger) in CI releases and includes it in the release archives, alongsiderledger+rledger-lsp.Why
ag-rledger(the #1291 agent-native CLI, gated behind theag-rledgerfeature → pullsagcli/tokio) was never built or shipped — release archives only containedrledger+rledger-lsp, so there was no way to obtainag-rledgerfrom a release.How
In
release-build.yml, buildag-rledgerin all three build paths (PGO Unix, PGO Windows, cross/native) exactly likerledger-lsp— separately, feature-gated, no PGO:and add it to the Unix
tar.gz+ Windowsziparchives.Verification
cargo check -p rustledger --bin ag-rledger --no-default-features --features ag-rledgeris clean.release-build.ymlis valid YAML.rledgerby name.ag-rledgerbuild is first exercised at the next release; this mirrors the provenrledger-lspbuild/package pattern.🤖 Generated with Claude Code