Repository navigation
A release pipeline for twcore - #22
Merged
Merged
Conversation
The desktop app has to ship a copy of twcore inside its .app, and until now the only way to get one was to copy whatever happened to be in a sibling checkout's target directory. That makes "which build did we hand out" a question about someone's afternoon rather than a fact. Tagging `v*` now builds the binary for aarch64-apple-darwin and attaches it to a release with a checksum. Two things are checked before it goes out, because neither shows up by looking at the file: that it is actually arm64, and that `--version` matches the tag — a Cargo.toml bump forgotten before tagging otherwise ships a binary claiming to be the previous release. The four gates are not re-run here. Tags are cut from main, and every commit on main has been through ci.yml; repeating them would slow the release without asking anything new. Apple Silicon only, and deliberately. Someone on Intel downloading a file that will not open is worse off than someone who finds no download at all — supporting them means a universal binary, which is a separate decision with its own cost. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Thanks for the PR. One thing before review: this targets
No need to close and reopen: click Edit next to the PR title and change the base branch to See CONTRIBUTING.md and CONTRIBUTING.md for the branch contract. |
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.
Why
twcoreships inside the desktop app's.app. Until now the only way to obtain one was to copy whatever sat in a sibling checkout'starget/directory, which makes "which build did we hand out" a question about someone's afternoon rather than a fact anybody can check.What
Pushing a
v*tag buildstwcoreforaarch64-apple-darwinand attaches it to a GitHub Release with asha256.Two things are verified before the artifact goes out, because neither is visible from the file listing:
--versionmatches the tag — otherwise a forgottenCargo.tomlbump ships a binary claiming to be the previous releaseThe four gates are not repeated. Tags are cut from
mainand every commit there has already been throughci.yml.Apple Silicon only
Deliberate. Someone on Intel downloading a file that will not open is worse served than someone who finds no download at all; supporting them means a universal binary, which is a separate decision with its own cost.
Note
Tested locally: the build, the arch check and the version check all pass against the current tree (
0.1.0).🤖 Generated with Claude Code