Skip to content

frontend: Build the GPU status light whenever cargo is available (#946) - #1018

Merged
zackees merged 3 commits into
masterfrom
feat/946-gpu-status-always
Oct 16, 2026
Merged

zackees merged 3 commits into
masterfrom
feat/946-gpu-status-always

Conversation

@zackees

@zackees zackees commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Fixes #946 (part of #939). Maintainer decision: "we always want this status."

The light was only linked with ENABLE_RUST_LIBOBS=ON, so OFF builds had none.

Change

  • frontend/cmake/feature-gpu-status.cmake: new option ENABLE_GPU_STATUS, ON by default. Whenever cargo is found, it fetches Corrosion v0.5.2 (the same pin as libobs/cmake/rust.cmake) and links obs-gpu-status-frontend, with ENABLE_RUST_LIBOBS ON or OFF. The crate has no crates.io dependencies. Without cargo, the build configures without the light and prints a warning.
  • build-project.yaml: the macOS and Windows jobs run rustup toolchain install, because rustup's auto-install is deprecated. The cross legs add x86_64-apple-darwin and aarch64-pc-windows-msvc, mirroring release-rust.yaml.
  • Flatpak: -DENABLE_GPU_STATUS=OFF. It builds offline, where the Corrosion fetch would fail, and it never had the light.
  • macOS: the frontend staticlib gets the same CLT-SDK link fix as libobs-rust (ci: macOS Tier 2 intermittently fails to link libobs against the MacOSX27.0 SDK ("unknown architecture") #777).

Evidence

  • A minimal CMake project including this file with no ENABLE_RUST_LIBOBS fetched Corrosion, built and linked the crate, and ran it. With cargo removed from PATH it configured with "FEATURE OFF … (cargo not found)".
  • A Sonnet reviewer checked every job that builds the frontend OFF; its toolchain, Flatpak and macOS findings are fixed in the second and third commits.
  • ci-full is on so every OBS build (Ubuntu OFF/ON, macOS ×2, Windows ×2, Flatpak) compiles this. Results will be posted here.

@zackees zackees added the ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak label Oct 16, 2026
@zackees
zackees force-pushed the feat/946-gpu-status-always branch from 89a600f to f5de673 Compare October 16, 2026 08:04
@zackees zackees closed this Oct 16, 2026
@zackees zackees reopened this Oct 16, 2026
@zackees
zackees force-pushed the feat/946-gpu-status-always branch from f5de673 to 0bec1e6 Compare October 16, 2026 08:27
@zackees zackees removed the ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak label Oct 16, 2026
The light was linked only with ENABLE_RUST_LIBOBS=ON, so the OFF builds
had none. obs-gpu-status has no crates.io dependencies, so any build with
cargo can link it: an OFF build now fetches the same Corrosion version
and imports the crate. A build without cargo (the Flatpak sandbox)
configures without the light and warns; ENABLE_GPU_STATUS=OFF turns it
off explicitly.

Fixes #946
…s out

Review findings for #946: the macOS and Windows OFF jobs never installed
the pinned toolchain (rustup's auto-install is deprecated), so they now
run rustup toolchain install before adding cross targets. The Flatpak
builds offline, where fetching Corrosion would fail if its SDK has
cargo, so its manifest sets ENABLE_GPU_STATUS=OFF (it never had the
light). The frontend's Rust staticlib gets the same macOS CLT SDK link
fix libobs-rust has (#777).

Refs #946
@zackees
zackees force-pushed the feat/946-gpu-status-always branch from 0bec1e6 to 2188056 Compare October 16, 2026 08:54
@zackees
zackees added this pull request to the merge queue Oct 16, 2026
Merged via the queue into master with commit 9f2ebfa Oct 16, 2026
20 checks passed
@zackees
zackees deleted the feat/946-gpu-status-always branch October 26, 2026 15:43
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.

decision: GPU status light in ENABLE_RUST_LIBOBS=OFF builds

1 participant