Skip to content

A release pipeline for twcore - #22

Merged
fylorn merged 1 commit into
mainfrom
ci/release-twcore
Sep 16, 2026
Merged

fylorn merged 1 commit into
mainfrom
ci/release-twcore

Conversation

@fylorn

@fylorn fylorn commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Why

twcore ships inside the desktop app's .app. Until now the only way to obtain one was to copy whatever sat in a sibling checkout's target/ 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 builds twcore for aarch64-apple-darwin and attaches it to a GitHub Release with a sha256.

Two things are verified before the artifact goes out, because neither is visible from the file listing:

  • it really is arm64
  • --version matches the tag — otherwise a forgotten Cargo.toml bump ships a binary claiming to be the previous release

The four gates are not repeated. Tags are cut from main and every commit there has already been through ci.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

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>
@github-actions

Copy link
Copy Markdown

Thanks for the PR. One thing before review: this targets main, and it should target dev.

main is a release-only line — branch-protected, linear history, and every commit on it is a tagged release snapshot. Routine work lands on dev and reaches main with the next release. GitHub pre-filled main here because it is the default branch, so this is our defaults being unhelpful rather than anything you did wrong.

No need to close and reopen: click Edit next to the PR title and change the base branch to dev. The commits and the discussion carry over.

See CONTRIBUTING.md and CONTRIBUTING.md for the branch contract.

@fylorn
fylorn merged commit 1a56415 into main Sep 16, 2026
2 checks passed
@fylorn
fylorn deleted the ci/release-twcore branch September 16, 2026 06:39
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