Skip to content

feat(dist): Homebrew tap pipeline for macmlx CLI (#20)#28

Open
balcsida wants to merge 1 commit intomagicnight:mainfrom
balcsida:fix/homebrew
Open

feat(dist): Homebrew tap pipeline for macmlx CLI (#20)#28
balcsida wants to merge 1 commit intomagicnight:mainfrom
balcsida:fix/homebrew

Conversation

@balcsida
Copy link
Copy Markdown

@balcsida balcsida commented Apr 26, 2026

Adds the build + render + publish path so brew tap magicnight/mac-mlx && brew install macmlx works on every tagged release.

  • Formula/macmlx.rb: source-of-truth template with @@Version@@/@@url@@/ @@sha256@@ placeholders; pinned to macOS 14+ arm64.
  • scripts/package-cli.sh: SPM Release build of macmlx, stripped, tarred as macmlx-${TAG}-arm64.tar.gz with a .sha256 sidecar.
  • scripts/render-formula.sh: substitutes the placeholders into dist/macmlx.rb using either MACMLX_CLI_SHA256 or the sidecar file.
  • release.yml: runs both scripts, attaches tarball + rendered formula to the Release, and pushes the formula to magicnight/homebrew-mac-mlx when HOMEBREW_TAP_TOKEN is configured (no-op otherwise — formula is still attached to the release for manual copy).
  • Docs: distribution.md gains a full Homebrew Tap section with bootstrap + sanity-check steps; cli-tui.md install snippet updated.

Summary

Type

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • CI / build

Testing

Screenshots (if UI change)

Checklist

  • Follows code conventions in .claude/swift-conventions.md
  • Tests added or updated
  • No force unwraps introduced
  • Documentation updated if needed

Adds the build + render + publish path so `brew tap magicnight/mac-mlx
&& brew install macmlx` works on every tagged release.

- Formula/macmlx.rb: source-of-truth template with @@Version@@/@@url@@/
  @@sha256@@ placeholders; pinned to macOS 14+ arm64.
- scripts/package-cli.sh: SPM Release build of macmlx, stripped, tarred
  as macmlx-${TAG}-arm64.tar.gz with a .sha256 sidecar.
- scripts/render-formula.sh: substitutes the placeholders into
  dist/macmlx.rb using either MACMLX_CLI_SHA256 or the sidecar file.
- release.yml: runs both scripts, attaches tarball + rendered formula
  to the Release, and pushes the formula to magicnight/homebrew-mac-mlx
  when HOMEBREW_TAP_TOKEN is configured (no-op otherwise — formula is
  still attached to the release for manual copy).
- Docs: distribution.md gains a full Homebrew Tap section with
  bootstrap + sanity-check steps; cli-tui.md install snippet updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants