Skip to content

meta: Cross-compile through Soldr to shrink macOS/Windows CI #700

Open
3 of 6 issues completed
Open

Description

@zackees

Today the Rust workspace is cross-checked from Linux through Soldr: clippy, Dylint and check for windows-msvc and both macOS targets, plus a real link for windows-gnu. But nothing for those targets is linked (except windows-gnu) or run on Linux, and the full OBS C/C++/Qt build and releases still need native macOS and Windows runners. Those are the slowest part of PR CI.

Sub-issues are ordered by how much PR wait time each removes.

  1. build: Link Windows-MSVC and macOS Rust targets on Linux (soldr LLVM bundle needs host libxml2.so.2) #695: link windows-msvc and macOS on Linux (Soldr's LLVM bundle depends on the host's libxml2.so.2).
  2. ci: Run the windows-gnu Rust tests under Wine in the Linux lane #696: run the windows-gnu tests under Wine on Linux.
  3. ci: Let local native lanes attest the macOS and Windows jobs #443: let local native lanes attest macOS/Windows jobs.
  4. build: Maximum C/C++ warning strictness with -Werror on every platform (cross-compiled with soldr) #516: -Werror C on every platform, cross-compiled with Soldr.
  5. build: Investigate cross-compiling the full OBS C/C++ build for Windows and macOS from Linux #697: investigate cross-compiling the full OBS build.
  6. ci: Move per-PR native macOS/Windows jobs to post-merge once cross lanes link and run #698: move per-PR native jobs to post-merge once 1–2 land.

Related: #699, the contributor-unblocking meta.

Done when

  • A shared-code PR goes green on Linux runners alone.
  • macOS/Windows native coverage still runs on master, nightly and release.

Sub-issues

Sub-issues

3 of 6 Issues completed
Loading 6 sub-issues

Activity

  1. zackees commented on Oct 16, 2026

    @zackees
    MemberAuthor

    Status: #695, #696 and #698 are closed; #1075 (libobs cross-compile check from any host) merged. Left: #443 (needs a macOS/Windows host running the local gate), #516 (-Werror ratchet, branch ci/516-werror-ratchet in progress elsewhere), #697 (full-build cross-compile investigation, which #1075 started for libobs). Refs #930.

  2. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    #697's investigation is answered, and the remaining work is #3059.

    • The C/C++ compile half is already on Linux (cmake/cross, build: Cross-compile libobs for Windows and macOS from any host via soldr #1075).
    • The link half is unblocked: soldr 0.9.45 exposes soldr cc --target <triple> --print-cc/--print-cxx/--print-linker/--print-sysroot/--print-ar/--print-rc, and on this host a PE exe, a PE DLL, a Mach-O exe and a Mach-O dylib all link from Linux (lld-link, ld64.lld, xwin CRT + Windows SDK, Apple SDK 14.5). build(cross): link libobs and the platform plugins on Linux (win-x64, mac-arm64, mac-x64) #3059 switches cmake/common/soldr.cmake to that interface and turns the check into a real link.
    • Measured native legs (release run 41007587429): Windows x64 build 12m25 + package 2m15; Windows arm64 9m43 + 1m38; macOS arm64 8m01 + 2m35; macOS x86_64 7m50 + 2m52; Linux x86_64 6m40 + 1m41.
    • Limits: no win-arm64 cross alias (MSVC ARM64 intrinsics in a public header), and macOS signing/notarization/DMG stay native, so a macOS runner remains in the chain.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions