feat(release): Homebrew formula publishing (groundwork) - #144
Merged
Conversation
Add a release workflow + formula generator that publish the riskkernel formula to a Homebrew tap on each version tag, so 'brew install riskkernel' installs a prebuilt binary and stays current — mirroring the per-artifact publish pattern of the Python (PyPI) and TypeScript (npm) SDKs. - scripts/gen-homebrew-formula.sh renders a binary formula from a release's checksums.txt (per-OS/arch url + sha256 for the GoReleaser darwin/linux amd64/arm64 archives). - .github/workflows/homebrew-publish.yml runs on a version tag (and manual dispatch), downloads the release checksums, renders the formula, and commits it to the tap repo. It is INERT until a HOMEBREW_TAP_TOKEN secret is set: without it the job logs a notice and exits 0, so it never blocks a release. Activating it is a one-time maintainer step (create the homebrew-riskkernel tap repo + add the token) documented in docs/HOMEBREW.md. README points at it; until then the existing go install / docker run / release-binary paths are unchanged. Verified the generator against the real v0.7.0 release: rendered the formula from the published checksums.txt (correct per-platform sha256s) and confirmed valid Ruby syntax (ruby -c).
prashar32
added a commit
that referenced
this pull request
Jun 20, 2026
- ROADMAP: Homebrew shipped (#144) — move it from 'Next' into the Operability 'Shipped' bullet; the headline runtime is built out, so 'Next' is now framed as demand-driven rather than listing a stale item. - ARCHITECTURE: the provider package is no longer 'OpenAI/Bedrock/Ollama stubbed' — Anthropic, OpenAI, Ollama, and AWS Bedrock are all native now.
prashar32
added a commit
that referenced
this pull request
Jun 20, 2026
* release: v0.8.0 * docs: bring ROADMAP and ARCHITECTURE current for v0.8.0 - ROADMAP: Homebrew shipped (#144) — move it from 'Next' into the Operability 'Shipped' bullet; the headline runtime is built out, so 'Next' is now framed as demand-driven rather than listing a stale item. - ARCHITECTURE: the provider package is no longer 'OpenAI/Bedrock/Ollama stubbed' — Anthropic, OpenAI, Ollama, and AWS Bedrock are all native now.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Groundwork for
brew install riskkernel(#97) — following the repo's per-artifact publish pattern (Python→PyPI, TS→npm).What's here
scripts/gen-homebrew-formula.sh— renders a binary formula from a release'schecksums.txt(per-OS/archurl+sha256for the GoReleaser darwin/linux × amd64/arm64 archives)..github/workflows/homebrew-publish.yml— on a version tag (andworkflow_dispatch), downloads the release checksums, renders the formula, and commits it to the tap repo.docs/HOMEBREW.md— install instructions + the one-time activation steps; README points at it.Safe by design (won't break releases)
The workflow is inert until configured: with no
HOMEBREW_TAP_TOKENsecret it logs a notice andexit 0. It's a separate workflow from the GoReleaser release (release.yml), so a misconfiguration can never block the binaries/image — same isolation as the SDK publish workflows.Two things only you can do to activate (in
docs/HOMEBREW.md)prashar32/homebrew-riskkernel(can be empty).HOMEBREW_TAP_TOKEN— a fine-grained PAT with Contents:write on that tap repo.Then re-run the workflow (or cut the next release) and
brew install prashar32/riskkernel/riskkernelworks.Verified
checksums.txt→ correct per-platformsha256s and the real asset URLs.ruby -con the rendered formula → Syntax OK.gen-homebrew-formula.shparse/lint clean.brew installfor verification — modern brew needs the formula in a tap, and this environment hasbrew autoremovebehavior I don't want to trigger; the render+shas+syntax cover the formula content, and the publish push is gated on your token anyway.)Closes #97