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

Open
mikebuckets171 wants to merge 1 commit from upstream-pr/783 into main
mikebuckets171 commented 2026-11-24 05:13:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mikebuckets171 on 2026-11-24T05:13:05Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5466525519 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/783). Originally posted by [mikebuckets171](https://github.com/mikebuckets171) on 2026-11-24T05:13:05Z. --- 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 commented 2026-11-24 07:06:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mikebuckets171 on 2026-11-24T05:15:05Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7122769628 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/783#issuecomment-7122769628). Originally posted by [mikebuckets171](https://github.com/mikebuckets171) on 2026-11-24T05:15:05Z. --- 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 commented 2026-11-24 07:06:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mikebuckets171 on 2026-11-24T06:06:42Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7123594613 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/783#issuecomment-7123594613). Originally posted by [mikebuckets171](https://github.com/mikebuckets171) on 2026-11-24T06:06:42Z. --- 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.
DavidM1911 commented 2026-11-25 11:09:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T11:08:48Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7160654253 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/783#issuecomment-7160654253). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T11:08:48Z. --- 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!
github-actions[bot] commented 2026-11-29 07:41:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:41:27Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7252629650 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/783#issuecomment-7252629650). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:41:27Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 04:07:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:07:23Z.


Triage (#1607) – head 5cf217e

No open or merged PR adds a gnullvm / macOS cross-build job. The 7 lines shared with #277 are generic workflow boilerplate (checkout, rustup); #277 adds a clippy job, a different change. #2442 only documents a mingw-w64 build.
No problems found in the diff. The job runs on every pull request on a macOS runner and downloads LLVM-MinGW without a checksum check.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7300401575 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/783#issuecomment-7300401575). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:07:23Z. --- **Triage (#1607)** – head 5cf217e No open or merged PR adds a gnullvm / macOS cross-build job. The 7 lines shared with #277 are generic workflow boilerplate (checkout, rustup); #277 adds a clippy job, a different change. #2442 only documents a mingw-w64 build. No problems found in the diff. The job runs on every pull request on a macOS runner and downloads LLVM-MinGW without a checksum check. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/783:upstream-pr/783'
git switch 'upstream-pr/783'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/783'
git switch 'upstream-pr/783'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/783'
git switch 'upstream-pr/783'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/783'
git switch 'main'
git merge --squash 'upstream-pr/783'
git switch 'main'
git merge --ff-only 'upstream-pr/783'
git switch 'main'
git merge 'upstream-pr/783'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!778
No description provided.