Skip to content

CI: cross-build the Wine target (x86_64-pc-windows-gnullvm) on a macOS runner - #783

Draft
mikebuckets171 wants to merge 1 commit into
xcl-dev:mainfrom
mikebuckets171:pr/mac-cross-build-ci
Draft

mikebuckets171 wants to merge 1 commit into
xcl-dev:mainfrom
mikebuckets171:pr/mac-cross-build-ci

Conversation

@mikebuckets171

@mikebuckets171 mikebuckets171 commented Nov 24, 2026 •

Copy link
Copy Markdown

Add a macOS CI job that cross-builds XCL for x86_64-pc-windows-gnullvm, the Windows ABI target used by Wine hosts such as CrossOver on macOS. This catches target-specific compile failures that the existing MSVC CI cannot see; it does not claim that GitHub's runner can execute XCL or validate a Mac GPU. Related to the macOS contributor work in #258.

What is in it

  • .github/workflows/mac-cross.yml: pinned LLVM-MinGW setup and a workspace/test-binary cross-build on GitHub's macOS runner. Test binaries are built, not executed.

Tested

  • Apple M5 Pro (20-core GPU), 48 GB; macOS 27.2.1 (26B131); Rust 1.100.0; LLVM-MinGW 20261117-ucrt-macos-universal, clang 23.1.6.
  • On current main 689f2db477c3c062cf162649781640ef8a977c18 and this refreshed PR head 5cf217e918cebaf9a715829dd548e6147fb40a7d:
    • cargo build --workspace --locked --target x86_64-pc-windows-gnullvm — passed (15.8 s each).
    • cargo test --no-run --release --locked --target x86_64-pc-windows-gnullvm — passed (40.2 s each); 19 test executables compiled.
    • PR-head target/x86_64-pc-windows-gnullvm/release/xcl.exe: 149,323,776 bytes, PE32+ x86-64.
  • Both builds emitted the same two Rust deprecation warnings (Atomic::fetch_update).

Regression run

  • Not applicable: this changes CI only, not runtime code.

Not tested

  • The GitHub Mac cross-build workflow has not run yet; its earlier attempt is awaiting first-contributor workflow approval. The suite was compiled but not executed. No Windows full-suite, Wine/GPU test, or retail gameplay result is claimed.

AI use

  • OpenChamber with GPT-6 Luna refreshed and tested the branch, and updated this description from the measured output.

@mikebuckets171

Copy link
Copy Markdown
Author

Both CI and Mac cross-build are sitting at action required — the first-contributor approval to run workflows on my fork — so the macOS job has not executed yet on GitHub. PR checks is green. The job's commands were run here before filing (workspace 14 s, 16 test executables, one warning the Windows build already prints); the numbers are in the description. Happy to rebase if this is not the shape you want a host build check to have.

@mikebuckets171

Copy link
Copy Markdown
Author

Rebased onto main 97fe3bf so the macOS job runs against current main when it is approved; the patch is byte-identical to what was here before (git patch-id --stable: a67e71f7ace3ab4d255c3928aef5addbada1f35e on both), and the description's numbers were measured on main 6025201 with the same toolchain (workspace 14 s, 16 test executables, 113,947,648-byte xcl.exe). CI and Mac cross-build are still waiting on the first-contributor approval.

…S runner

The Windows job is the only build check, so code that builds only with MSVC reaches main and
blocks a host port there. Cross-build the same tree for the target a Wine host compiles with,
built only: the runner has no Wine and no GPU, so nothing is executed and no test result is
claimed. rustc's gnullvm target links with -nolibc --unwindlib=libunwind, which a GNU GCC
driver rejects, so the job installs pinned LLVM-MinGW (clang, lld, UCRT). A separate workflow
file: the CI and PR checks required checks are untouched.
@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants