Repository navigation
ci(release): build every archive on Linux with GoReleaser - #59
Merged
Merged
Conversation
…Linux Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Rust | Oct 27, 2026 5:13a.m. | Review ↗ | |
| JavaScript | Oct 27, 2026 5:13a.m. | Review ↗ | |
| Shell | Oct 27, 2026 5:13a.m. | Review ↗ | |
| Secrets | Oct 27, 2026 5:13a.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | 75f7b3c | Commit Preview URL Branch Preview URL |
Oct 27 2026, 05:15 AM |
|
[High impact] The PR appears safe to merge; no new blocking issue was found. Reviews (6) · Last reviewed commit: "ci(release): publish the smoke-tested ar..." · Reviewed by Greptile |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ducible links Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
Moves the release build to GoReleaser. All four archives, macOS included, now build on one Linux runner with cargo-zigbuild, so no macOS runner builds anything. macOS runners only run the darwin smoke tests, which take seconds.
What changed
.goreleaser.yamlusesbuilder: rustwithcargo zigbuildforx86_64/aarch64unknown-linux-muslandapple-darwin. It writes the archives (same names and directory layout as before) andpatchula-vX.Y.Z-checksums.txt. The man page, completions and usage spec come from a post-build hook that runsdocs:cliagainst the build the host can execute. GoReleaser publishes nothing (release.disable,changelog.disable).mise run release:distreplacesrelease:package. GoReleaser and cargo-zigbuild are task tools pinned inmise.toml, and Zig already comes from mise. The musl linker overrides in.cargo/config.tomlare gone because cargo-zigbuild sets the linker per target.libSystemcovers libc and iconv. Only the link needed more: rustls-platform-verifier imports 23 symbols from Security and CoreFoundation, and Zig ships no Apple frameworks.release/macos-sdkholds two small.tbdtext stubs listing exactly those symbols, andrelease:distpointsSDKROOTat them. The binaries record the real framework install names, so macOS loads the system frameworks at run time. Keychain-based TLS trust is unchanged, and no Xcode SDK is involved. If a dependency update imports a new symbol from either framework, the link fails withundefined symbol: _Name, and the fix is adding that name to the stub.Buildjob. It runs GoReleaser in tag mode against a localvX.Y.Ztag on the bump commit, with--skip=publish, so the archive names are the release's. The smoke tests (4 runners, includingmacos-26andmacos-26-intel), the image job and the publish job all download that onedistartifact. Nothing lands or publishes unless every smoke test and the image test passed.gh release create --draft, then packslip (attestations and signature, unchanged), then un-drafts. communique still rewrites the notes afterwards, with the Infisical OIDC step unchanged. The checksums file is a new release asset.bin/patchula LICENSE. GoReleaser's tar entries carry no./prefix.internals/releasing.mdcovers the new build step, GoReleaser and the framework stubs.Why no rebuild, and why the image stays its own job
GoReleaser OSS can't publish artifacts it didn't build in the same run (
publishis Pro). So GoReleaser owns build, archive and checksums, and the workflow publishes the smoke-tested files withgh. I tried rebuilding in the publish job behind a byte-identical checksum gate. Linux rebuilt identically, but Zig's Mach-O linker names anonymous local symbols after the thread that parsed their object file, so darwin symbol tables, and with them the UUIDs and signatures, differed between runners. The gate caught it. Publishing the tested files directly is simpler and stronger than proving a rebuild is reproducible.The container image stays in its own job. GoReleaser's
dockers_v2would rebuild the image at publish time, and the Dockerfile'sapt-get installmakes that rebuild differ from the image the smoke test ran. The existing job pushes the tested layers by digest and tags them only after land.Validation
goreleaser checkpasses, and a localgoreleaser release --snapshot --cleanbuilds all four archives.version=0.5.3,dry_run=true): Guard, Bump, Build (one ubuntu runner, 21 min), all four smoke tests and the container image passed.darwin-arm64ran onmacos-26anddarwin-x64onmacos-26-intel, both from the Linux-built archives. Land and Publish are skipped in a dry run by design, so thegh releaseand packslip steps were not exercised. They are the same as on main apart from file paths.Archives from the dry run:
Sizes, v0.5.2 release vs this dry run, in bytes:
The binaries are within 1% of v0.5.2, which was one release of code earlier. The archives grew by up to 3.3%, for darwin-arm64.
Follow-ups
Homebrew, deb/rpm (nfpms) and Scoop are each a short GoReleaser section now that it produces the archives.