Skip to content

ci: Cross-compile the Windows/macOS host groups a PR touches (#1294) - #2407

Merged
zackees merged 4 commits into
masterfrom
ci/1294-cross-c-pr
Oct 25, 2026
Merged

zackees merged 4 commits into
masterfrom
ci/1294-cross-c-pr

Conversation

@zackees

@zackees zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member

Part 2 of #1294: PR CI now compiles the Windows and macOS host groups a PR touches.

What changes

  • ci/ci_scope.py has a new cross_targets output: win-x64, mac-arm64, both, or none. A change selects an alias when it touches either of these:

    • a Windows or macOS file in libobs, or in a component that cmake/cross/CMakeLists.txt names by DIR;
    • the check itself (cmake/cross/, cmake/common/soldr.cmake).

    Full runs (schedule, dispatch, tags, the release gate) select both.

  • build-project.yaml has a new job, Cross Compile 🧰, on ubuntu-26.04. It runs cmake/cross for those aliases: compile-only, soldr's LLVM and SDKs, no app build. A PR with no host C/C++ change skips it, so it costs nothing there. There is no new workflow file.

  • Docs: docs/ci-tooling.md and the comments in ci/test_cross_sources.py and cmake/cross/CMakeLists.txt say the check now runs in CI. The CMakeLists comment change also makes this PR run the new job.

Tests

  • RED: ci/test_cross_scope.py (c162bab1b) fails on master with an ImportError: cross_targets doesn't exist yet.
  • GREEN: test_cross_scope and test_ci_scope pass. So do the workflow tests I ran: test_gate_jobs, test_ci_toml, test_runner_pools, test_workflow_duplicate_keys, test_reusable_permissions, test_master_push_scope, test_cross_sources, test_ci_pre, test_lane_proof, and more.
  • Locally: cmake/cross/docker.sh win-x64 mac-arm64 on master b652da8d2 exits 0, so the job starts green.

Not covered yet

The acceptance case "fails on a reverted #2359" is not met. frontend/build/frontend-windows-obs-main.pch.hpp includes OBSApp.hpp, which needs Qt headers and the generated moc/uic files. The cross check has no Qt, so cross_targets deliberately leaves frontend Qt groups out, and test_cross_scope pins that. I'll file a follow-up issue for adding the frontend's Qt groups (the Windows/macOS Qt6 prebuilt plus host moc/uic) to the cross check.

Refs #1294 (part 2). It stays open for that follow-up.

@zackees

zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

Coordinator: two separate failures in run 40222529450, both caused by this change.

  1. Format / checks: ci/test_rust_cache_policy.py test_bypassed_compiler_store_is_not_transferred fails with assertEqual(found, 7, "Audit new setup-soldr consumers explicitly"). The build-project.yaml change adds a setup-soldr consumer, so audit it (the bypassed compiler store must not be transferred) and update the expected count in that test.
  2. Cross Compile (mac-arm64, win-x64): now that the touched host groups get cross-compiled, win-dshow-cross fails at its PCH: plugins/win-dshow/build/win-dshow.pch.hpp:23: 'dshowcapture.hpp' file not found. Then virtualcam-module-cross fails: 'source/output-filter.hpp' file not found. The cross job doesn't check out the libdshowcapture submodule, and the virtualcam module's include path isn't set up in cmake/cross. Either check out the submodule and add the include directories, or leave those targets out of the cross set, with a reason in test_cross_sources.py.

(The serde_json requires std or alloc error is in the cook pre-step. It continues without cooked deps and isn't what fails the job.)

@zackees
zackees force-pushed the ci/1294-cross-c-pr branch from a5cf278 to 22c856b Compare October 25, 2026 18:53
@zackees
zackees added this pull request to the merge queue Oct 25, 2026
Merged via the queue into master with commit 2d1f123 Oct 25, 2026
31 checks passed
@zackees
zackees deleted the ci/1294-cross-c-pr branch October 26, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant