Repository navigation
Add Linux and Windows ARM64 release targets and align the release with puny - #124
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 3 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
🟡 Changes recommended
Draft tests using an existing published version can unpublish the live release and overwrite its downloads; draft releases need a separate per-run test tag.
What changed in this PR
Adds Linux and Windows ARM64 release archives and aligns release automation with christianhelle/puny.
Changes:
- Expands release builds to six targets and adds Windows ARM64 installer and upgrade support.
- Adds a draft-release option that skips container publishing and changelog updates.
- Replaces changelog generation and updates platform documentation.
| File | Description |
|---|---|
src/upgrade.zig |
Adds Windows ARM64 platform handling and tests. |
README.md |
Documents ARM64 downloads and Windows GNU build targets. |
docs/install.ps1 |
Selects the ARM64 archive on ARM64 Windows. |
docs/index.html |
Lists Linux and Windows ARM64 downloads. |
build.zig |
Aligns build-all with all six release targets. |
.github/workflows/release.yml |
Adds ARM64 builds, draft controls, and post-release changelog generation. |
.github/workflows/changelog.yml |
Switches changelog generators and runs on every push to main. |
.github/copilot-instructions.md |
Updates Windows cross-compilation guidance. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #124 +/- ##
=======================================
Coverage 97.26% 97.26%
=======================================
Files 142 142
Lines 17967 17970 +3
=======================================
+ Hits 17476 17479 +3
Misses 491 491 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|

Summary
Publishes Linux and Windows ARM64 archives and aligns the release setup with
christianhelle/puny.Manual runs get a
draftinput, so the workflow can be tested without publishing:draft=truebuildrelease<version>-draft.<run id>publish-containerchangelogmainAligned with puny:
fetch-depth: 0, sogit describe --tagscan find the version, andcontents: read.christianhelle/action-gh-release@v2. The unused changelog step is gone.changelogjob after release, andchangelog.ymlmoves tochristianhelle/changelog-generator-action.Kept different from puny:
-Doptimize=ReleaseSmall, because puny'ssmallis its own option, and the checked-inDockerfile.Also needed for the new targets:
src/upgrade.ziggains a Windows ARM64 platform.build-allcovers all six release targets.docs/install.ps1picks the ARM64 archive on ARM64 Windows.Evidence
zig build -Dtarget=aarch64-windows-gnufails withsrc\upgrade.zig:26:21: error: unsupported OS for aarch64. v0.6.1 ships four archives, with no Linux or Windows ARM64 build.After: Draft release run on this branch built all six targets and attached them to a draft. The container and changelog jobs were skipped, and no tag was created. The test draft has since been deleted.
Binary formats from the downloaded archives:
The Windows x86_64 binary from the run reports
version: 0.6.1 (3dc4641).Locally:
build-all25/25 steps,zig build test646/652 passed with 6 skipped, andrun-generatethenrun-generatedsucceeded. The tests took four attempts because of intermittentunable to load "<file>.zig": Unexpectederrors on Zig's standard library files, which unmodified code hit as well.Not tested: the ARM64 binaries have not been run on ARM64 hardware. The container and changelog jobs first run on a real release, and the new
changelog.ymlfirst runs when this merges.Merge Danger
Door: two-way
Revert the commits to roll back. The workflow changes don't publish anything until the next tag.
Blast Radius: release
install.ps1is live, they get a 404 until a release includes the ARM64 zip. Before this they got the x86_64 build, so release soon after merging.CHANGELOG.md: the new generator reformats it once on the first push tomain, and it now runs on every push tomain.