Skip to content

CI: cross-build + publish the windows-aarch64 seed - #867

Merged
ropoctl merged 1 commit into
mainfrom
winarm/pr3-seed-ci
Aug 19, 2026
Merged

ropoctl merged 1 commit into
mainfrom
winarm/pr3-seed-ci

Conversation

@ropoctl

@ropoctl ropoctl commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

What

Adds .github/workflows/seed-windows-aarch64.yml — a Linux-hosted CI job that
cross-builds the Windows-on-ARM64 (aarch64-pc-windows-msvc) with compiler
seed 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-latest x86_64 runner:

  1. Bootstrap a native host with from the pinned linux-x86_64 seed (v0.15.1.3).
  2. Build the windows-aarch64 cross runtime objects: with build :cross-rt-windows-aarch64.
  3. Cross-emit + COFF-link the compiler itself:
    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*.lib are statically linked from the
sdk-windows-aarch64 release asset (guarded up front — fails loudly if
unpublished). The MSVC CRT + Windows SDK (ucrt/um) arm64 import libraries
come from xwin (--arch aarch64 splat).
lld invoked as lld-link performs 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 the seed-windows-aarch64 prerelease.
  • push to the feature branch — builds + verifies + uploads the PE as a
    workflow 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 run
or 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 the
stack). The end-to-end cross-emit + COFF-link recipe was validated locally on an
x86_64-Windows proxy target producing a well-formed PE.

@ropoctl
ropoctl force-pushed the winarm/pr3-seed-ci branch from ea8ae3e to 6f692dd Compare August 19, 2026 18:20
Base automatically changed from winarm/pr2-runtime to main August 19, 2026 19:31
@ropoctl
ropoctl force-pushed the winarm/pr3-seed-ci branch from 6f692dd to 80d9469 Compare August 19, 2026 19:31
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
ropoctl force-pushed the winarm/pr3-seed-ci branch 2 times, most recently from 80d9469 to dd770f7 Compare August 19, 2026 20:55
@ropoctl
ropoctl merged commit 41ce3f7 into main Aug 19, 2026
4 of 5 checks passed
@ropoctl ropoctl mentioned this pull request Aug 19, 2026
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.
@ehartford
ehartford deleted the winarm/pr3-seed-ci branch September 24, 2026 16:58
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