Skip to content

Add Linux and Windows ARM64 release targets and align the release with puny - #124

Merged
christianhelle merged 4 commits into
mainfrom
feature/arm64-linux-windows-targets
Nov 5, 2026
Merged

christianhelle merged 4 commits into
mainfrom
feature/arm64-linux-windows-targets

Conversation

@christianhelle

@christianhelle christianhelle commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Publishes Linux and Windows ARM64 archives and aligns the release setup with christianhelle/puny.

 build matrix
   x86_64-linux         openapi2zig-linux-x86_64.tar.gz
+  aarch64-linux        openapi2zig-linux-aarch64.tar.gz
-  x86_64-windows       openapi2zig-windows-x86_64.zip
+  x86_64-windows-gnu   openapi2zig-windows-x86_64.zip
+  aarch64-windows-gnu  openapi2zig-windows-aarch64.zip
   x86_64-macos         openapi2zig-macos-x86_64.tar.gz
   aarch64-macos        openapi2zig-macos-aarch64.tar.gz

Manual runs get a draft input, so the workflow can be tested without publishing:

Job Normal run draft=true
build runs runs
release publishes creates a draft tagged <version>-draft.<run id>
publish-container pushes images skipped
changelog commits to main skipped

Aligned with puny:

  • Build job uses fetch-depth: 0, so git describe --tags can find the version, and contents: read.
  • Uses christianhelle/action-gh-release@v2. The unused changelog step is gone.
  • Adds a changelog job after release, and changelog.yml moves to christianhelle/changelog-generator-action.

Kept different from puny: -Doptimize=ReleaseSmall, because puny's small is its own option, and the checked-in Dockerfile.

Also needed for the new targets:

  • src/upgrade.zig gains a Windows ARM64 platform.
  • build-all covers all six release targets.
  • docs/install.ps1 picks the ARM64 archive on ARM64 Windows.

Evidence

  • Before: zig build -Dtarget=aarch64-windows-gnu fails with src\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:

linux-aarch64    ELF 64-bit LSB executable, ARM aarch64, statically linked
windows-aarch64  PE32+ executable (console), ARM64

The Windows x86_64 binary from the run reports version: 0.6.1 (3dc4641).

Locally: build-all 25/25 steps, zig build test 646/652 passed with 6 skipped, and run-generate then run-generated succeeded. The tests took four attempts because of intermittent unable to load "<file>.zig": Unexpected errors 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.yml first 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

  • Windows ARM64 installs: once install.ps1 is 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 to main, and it now runs on every push to main.

Copilot AI balanced review requested due to automatic review settings November 5, 2026 12:08
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9002097a-11f1-42b4-bea4-413bac5cc6be
Commits

Reviewing files that changed from the base of the PR and between 052d3c0 and 69bcc64.

Files selected for processing: 8

  • .github/copilot-instructions.md
  • .github/workflows/changelog.yml
  • .github/workflows/release.yml
  • README.md
  • build.zig
  • docs/index.html
  • docs/install.ps1
  • src/upgrade.zig
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

1 open issue
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

Comment thread .github/workflows/release.yml Resolved
@christianhelle christianhelle self-assigned this Nov 5, 2026
@christianhelle christianhelle added the enhancement New feature or request label Nov 5, 2026
@codecov

codecov Bot commented Nov 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.26%. Comparing base (052d3c0) to head (69bcc64).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@christianhelle
christianhelle merged commit bc98c4b into main Nov 5, 2026
16 of 25 checks passed
@christianhelle
christianhelle deleted the feature/arm64-linux-windows-targets branch November 5, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants