Skip to content

ci: cross-ship — build reld off-platform via soldr, run on-platform (#59) - #61

Merged
zackees merged 1 commit into
mainfrom
feat/ci-cross-ship
Aug 7, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/ci-cross-ship

Conversation

@zackees

@zackees zackees commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Draft implementation for #59.

What

Adds a single additive workflow, .github/workflows/cross-ship.yml, that:

  1. Cross-builds the release reld binary for x86_64-pc-windows-msvc and aarch64-apple-darwin on ubuntu-24.04, through the blessed soldr front door:
    soldr build --package reld --bin reld --release --locked --target <triple>
    zackees/setup-soldr@main with cross-targets: <triple> runs soldr prepare, which "owns compiler, linker, SDK, sysroot, environment, and capability selection" — so there are zero toolchain installs on the runner (no apt-get install gcc-mingw, no choco install llvm, no brew install llvm). For the msvc lane soldr's cargo front door auto-injects the xwin CC_/CXX_/AR_/LD_<triple>; the darwin lane injects the Apple SDK env internally.
  2. Ships the finished binary as an artifact and has the native windows-2022 / macos-14 legs download and smoke-run it — no product compilation on the scarce runners.
  3. Reports setup-soldr's compile-cache-hit-rate / cache-hit into the job summary — ci(perf): cross-build the OS product on Linux via setup-soldr (cook + heavy cache), ship the binary to native runners for tests/benchmarks #59 wants this as the "how well does setup-soldr caching hold up" metric.

Why these targets

soldr's canonical set (soldr/ci/canonical-targets.json) blesses MSVC for Windows, not -gnu; windows-gnu is a Windows-host build, not a cross-from-Linux target. reld's scarce benchmark/native runners are windows-msvc and macos-arm64, so those are the two cross legs.

Status: DRAFT — needs a live CI run

I can't validate GHA locally. This workflow is intentionally additive so it can't break the existing green jobs. Once the two cross legs go green here, the follow-up is to migrate ci.yml's cross-release job and the native reld-bench build steps onto this pattern (and extend the native leg from a smoke-run to the real reld-bench --replay-corpus against a frozen corpus).

Platform notes baked in

  • windows-msvc: reld.exe --version prints normally → asserted.
  • macos-arm64: on macOS reld is invoked as a linker and bridges every call (incl. --version) to ld64.lld, so it can't print its own version (see the macOS self-host note in ci.yml). The smoke instead asserts a well-formed arm64 Mach-O.

Upstream context

The cross toolchains are already built by zackees/forge, catalogued in zackees/soldr-toolchain, and consumed by soldr build --target — nothing upstream needs building for this. See the evidence trail and the narrowed genuine gaps in soldr#2334 / soldr#2335.

Coordinated with #59.

🤖 Generated with Claude Code

…tform)

Cross-build the release `reld` binary for x86_64-pc-windows-msvc and
aarch64-apple-darwin on cheap ubuntu runners through the blessed soldr
front door (`soldr build --target`), which provisions compiler + linker +
SDK + sysroot from the soldr-toolchain catalogue with zero toolchain
installs on the runner. Ship the finished binary to the native runner,
which downloads and smoke-runs it — no product compilation on the scarce
Windows/macOS runners.

Additive and DRAFT: does not touch existing jobs. Needs a live CI run to
validate the two cross legs before migrating ci.yml's cross-release and the
native reld-bench build steps onto this pattern.

Refs #59.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@zackees
zackees marked this pull request as ready for review August 7, 2026 16:21
@zackees
zackees merged commit 6079763 into main Aug 7, 2026
21 checks passed
@zackees
zackees deleted the feat/ci-cross-ship branch August 7, 2026 16:27
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