8000 release prebuilt macOS and Linux binaries and point Homebrew at them by jrnxf · Pull Request #38 · jrnxf/thokr · GitHub
[go: up one dir, main page]

Skip to content

release prebuilt macOS and Linux binaries and point Homebrew at them - #38

Merged
jrnxf merged 2 commits into
mainfrom
fm/thokr-prebuilt-binaries
Oct 23, 2026
Merged

jrnxf merged 2 commits into
mainfrom
fm/thokr-prebuilt-binaries

Conversation

@jrnxf
@jrnxf jrnxf commented Oct 23, 2026 •
Copy link
Copy Markdown
Owner

brew install jrnxf/tap/thokr will download a prebuilt binary instead of compiling with cargo. A v* tag now builds thokr for macOS (Apple silicon, Intel) and Linux (static musl, x86-64 and ARM). It publishes the release with .tar.gz + .sha256 archives, publishes the crate, and points Formula/thokr.rb in jrnxf/homebrew-tap at the new binaries.

Review (about 10 min): .github/workflows/release.yml, modeled on okfs's, with the first-release formula rewrite from jrnxf/fsrx PR 14. This PR's own run of the workflow builds all four binaries without publishing.

  • Version is bumped to 0.6.1 in Cargo.toml and Cargo.lock. The tag must match it, so after merge, push the tag v0.6.1 and nothing else is needed.
  • On the first release, the tap job rewrites Formula/thokr.rb to bin.install "thokr", keeping cargo in a head do block for --HEAD. Later releases skip the rewrite and only move the urls.
  • deploy.yml is gone. Its crate and tap jobs moved into release.yml, because a release made with the workflow's token never fires release: published.
  • A tag with a hyphen makes a GitHub pre-release only, with no crate and no formula bump.
  • CRATES_TOKEN and TAP_DEPLOY_KEY are already set, and the tap's thokr-tap-bump key is read-write. Nothing to add.

Checked locally against a scratch copy of the tap, using this PR's CI archives (v0.6.0, from before the bump):

  • The rewrite plus bump-formula.sh wrote all four sha256s, matching the published .sha256 files. A second run changed nothing.
  • brew style (with the tap's Desc exception) and brew audit --strict pass.
  • On Linux x86-64, brew install and brew test pass. The binary install has no build dependencies, and only --HEAD pulls in rust.
  • Not checked: the macOS install, a --HEAD build, and the push to the tap. The v0.6.1 release run covers those.

@jrnxf
jrnxf merged commit 1280cef into main Oct 23, 2026
12 checks passed
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.

1 participant

0