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

Open
github-bot wants to merge 1 commit from github-bot/gh-783 into main AGit
Owner

@⁠mikebuckets171 on GitHub · 2026-11-24 05:13 UTC · original
mikebuckets171:pr/mac-cross-build-ci → main · +63 −0 · 1 files · 1 commits · draft

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** on GitHub · 2026-11-24 05:13 UTC · [original](https://github.com/xcl-dev/xcl/pull/783) `mikebuckets171:pr/mac-cross-build-ci` → `main` · +63 −0 · 1 files · 1 commits · draft 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.
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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:32:24 +00:00
Author
Owner

@⁠mikebuckets171 on GitHub · 2026-11-24 05:15 UTC · original

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** on GitHub · 2026-11-24 05:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/783#issuecomment-7122769628) 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.
Author
Owner

@⁠mikebuckets171 on GitHub · 2026-11-24 06:06 UTC · original

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.

**@⁠mikebuckets171** on GitHub · 2026-11-24 06:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/783#issuecomment-7123594613) 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 11:08 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 11:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/783#issuecomment-7160654253) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/783/head:github-bot/gh-783'
git switch 'github-bot/gh-783'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-783'
git switch 'github-bot/gh-783'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-783'
git switch 'github-bot/gh-783'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-783'
git switch 'main'
git merge --squash 'github-bot/gh-783'
git switch 'main'
git merge --ff-only 'github-bot/gh-783'
git switch 'main'
git merge 'github-bot/gh-783'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.