Repository navigation
ci: cross-ship — build reld off-platform via soldr, run on-platform (#59) - #61
Merged
Merged
Conversation
…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]>
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.
Draft implementation for #59.
What
Adds a single additive workflow,
.github/workflows/cross-ship.yml, that:reldbinary forx86_64-pc-windows-msvcandaarch64-apple-darwinonubuntu-24.04, through the blessed soldr front door:zackees/setup-soldr@mainwithcross-targets: <triple>runssoldr prepare, which "owns compiler, linker, SDK, sysroot, environment, and capability selection" — so there are zero toolchain installs on the runner (noapt-get install gcc-mingw, nochoco install llvm, nobrew install llvm). For the msvc lane soldr's cargo front door auto-injects the xwinCC_/CXX_/AR_/LD_<triple>; the darwin lane injects the Apple SDK env internally.windows-2022/macos-14legs download and smoke-run it — no product compilation on the scarce runners.setup-soldr'scompile-cache-hit-rate/cache-hitinto 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'scross-releasejob and the nativereld-benchbuild steps onto this pattern (and extend the native leg from a smoke-run to the realreld-bench --replay-corpusagainst a frozen corpus).Platform notes baked in
reld.exe --versionprints normally → asserted.--version) told64.lld, so it can't print its own version (see the macOS self-host note inci.yml). The smoke instead asserts a well-formed arm64 Mach-O.Upstream context
The cross toolchains are already built by
zackees/forge, catalogued inzackees/soldr-toolchain, and consumed bysoldr 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