Repository navigation
CI: cross-build + publish the windows-aarch64 seed - #867
Merged
Merged
Conversation
ropoctl
force-pushed
the
winarm/pr3-seed-ci
branch
from
August 19, 2026 18:20
ea8ae3e to
6f692dd
Compare
ropoctl
force-pushed
the
winarm/pr3-seed-ci
branch
from
August 19, 2026 19:31
6f692dd to
80d9469
Compare
Add .github/workflows/seed-windows-aarch64.yml. On an x86_64 Linux runner it bootstraps a native host `with`, builds the windows-aarch64 cross runtime (:cross-rt-windows-aarch64), then cross-emits and COFF-links the compiler itself for aarch64-pc-windows-msvc, producing with-windows-aarch64.exe. The arm64 target libclang.lib/LLVM*.lib come from the sdk-windows-aarch64 release asset (guarded up front, fails loudly if unpublished); the MSVC CRT + Windows SDK ucrt/um arm64 import libs come from xwin. lld invoked as lld-link performs the COFF link from the Linux host — no Windows runner needed to produce the seed. workflow_dispatch publishes the seed (+ .sha256) to the seed-windows-aarch64 prerelease; push to the feature branch runs build + verify + artifact only. The produced PE is not run or fixpoint-verified here — that is the downstream native bootstrap.
ropoctl
force-pushed
the
winarm/pr3-seed-ci
branch
2 times, most recently
from
August 19, 2026 20:55
80d9469 to
dd770f7
Compare
Merged
ropoctl
added a commit
that referenced
this pull request
Aug 20, 2026
Bump the canonical compiler version so a v0.15.1.6 tag cuts the first release that includes the windows-aarch64 platform (landed on main via #867 seed cross-build and #870 bootstrap-test + nightly packaging). The Release workflow asserts src/version == WITH_VERSION in every per-platform build job, so main must carry the bump before the tag is pushed. A test-channel dispatch validated all four platform assets (linux-x86_64, linux-aarch64, windows-x86_64, windows-aarch64) build and publish end-to-end.
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.
What
Adds
.github/workflows/seed-windows-aarch64.yml— a Linux-hosted CI job thatcross-builds the Windows-on-ARM64 (
aarch64-pc-windows-msvc)withcompilerseed and publishes it to this repo as
with-windows-aarch64.exe(tag
seed-windows-aarch64).This is rung 3 of the windows-arm seed stack. It depends on the kind-6 target
plumbing (
winarm/pr1-target-kind) and the runtime backend + build wiring(
winarm/pr2-runtime, this PR's base).How it works
On an
ubuntu-latestx86_64 runner:withfrom the pinned linux-x86_64 seed (v0.15.1.3).with build :cross-rt-windows-aarch64.out/release/bin/with build --target aarch64-pc-windows-msvc out/gen/main.w -O1 -o with-windows-aarch64.exe.The arm64 target
libclang.lib/LLVM*.libare statically linked from thesdk-windows-aarch64release asset (guarded up front — fails loudly ifunpublished). The MSVC CRT + Windows SDK (
ucrt/um) arm64 import librariescome from
xwin(--arch aarch64 splat).lldinvoked aslld-linkperforms the COFF/PE link directly on the Linux host,so no Windows runner is needed to produce the seed (same
cross-on-Linux model that produced the first windows-x86_64 seed).
Triggers
workflow_dispatch— builds, verifies, and publishes the seed(+
.sha256) to theseed-windows-aarch64prerelease.pushto the feature branch — builds + verifies + uploads the PE as aworkflow artifact only (no publish), so the cross build is provable in the PR
without clobbering the released seed.
Verification
The job asserts the output is an arm64 PE/COFF image
(
llvm-readobj --file-headers→IMAGE_FILE_MACHINE_ARM64). It is not runor fixpoint-verified here — there is no arm64-Windows runner, and the produced
binary is the intermediate seed for the downstream native
stage1→stage2→stage3 bootstrap (
selfhost-windows-aarch64.yml, next PR in thestack). The end-to-end cross-emit + COFF-link recipe was validated locally on an
x86_64-Windows proxy target producing a well-formed PE.