Skip to content

ci: Build the Ubuntu app with ENABLE_RUST_LIBOBS=ON and smoke test it - #167

Merged
zackees merged 1 commit into
masterfrom
ci/rust-on-build
Oct 11, 2026
Merged

zackees merged 1 commit into
masterfrom
ci/rust-on-build

Conversation

@zackees

@zackees zackees commented Oct 10, 2026

Copy link
Copy Markdown
Member

Refs #140 (this is the first step; the Tier 4 run and the macOS/Windows variants follow).

No CI job and no release built the real app with ENABLE_RUST_LIBOBS=ON. The full builds and publish.yaml use the default (OFF). Only the cmocka Tier 2 harnesses build ON. So the ported Rust code had never run inside OBS itself.

Change (edits the existing build-project.yaml; no new workflow file)

  • .github/scripts/build-ubuntu honors ENABLE_RUST_LIBOBS=ON and passes -DENABLE_RUST_LIBOBS:BOOL=ON.
  • ubuntu-build gains a rust: ['OFF', 'ON'] matrix axis. The job name, ccache key and artifact names are kept separate for the ON variant (obs-studio-ubuntu-26.04-rust-…).
  • New Smoke Test Rust libobs 🦀 step, ON only: runs the installed obs --version and requires it to start with OBS-Studio-Rust. Only a Rust-libobs build names itself that (frontend: name the Rust build OBS-Studio-Rust and show its own version #112). The check proves the frontend, plugins and libobs all built and linked against the Rust staticlib, and that the binary runs.

Evidence

This change is the test. The new ON job must go green in this PR's CI (it runs because the PR edits a workflow). If the frontend or plugins fail to build or link with the Rust staticlib, the job fails.

Cost: one more Ubuntu build per native PR.

No CI job or release built the real app with the Rust libobs: the full
builds and publish.yaml use the default (OFF), and only the cmocka Tier 2
harnesses build ON, so the ported code had never run inside OBS. Add a
rust: [OFF, ON] axis to ubuntu-build (build-ubuntu honors
ENABLE_RUST_LIBOBS), keep the ccache and artifact names apart, and smoke
test the ON build: the installed obs --version must print
OBS-Studio-Rust, which only a Rust libobs build does (#112).

Refs #140

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local-Gate: v1 tree=8f47fd989c5a00475c8cffaaa653e52c5d669d3c secs=86 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791675987,"gate":"rust/all/fmt","host":"linux-x86_64","key":"caed603f3c8a3432c3c85a9ba7904b3ca556525bf7d94a5fdc27a19d34ca770e","lane":"lint","parents":["faaca71086cff4fed3c2d807d98cb98e8e109ab4"],"secs":17,"stamp":"4ebfbcf542674ef3bf24eb3110be73fd","tree":"8f47fd989c5a00475c8cffaaa653e52c5d669d3c","v":1,"via":"run"}
Ci-Attestation: {"at":1791675987,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"caed603f3c8a3432c3c85a9ba7904b3ca556525bf7d94a5fdc27a19d34ca770e","lane":"lint","parents":["faaca71086cff4fed3c2d807d98cb98e8e109ab4"],"secs":17,"stamp":"1a81711abcd435b4c096816e76678b9c","tree":"8f47fd989c5a00475c8cffaaa653e52c5d669d3c","v":1,"via":"run"}
Ci-Attestation: {"at":1791675987,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"d6638afea8ea44f26a8378fe1b938f97a2fd367590dd3c24bd9ee61a40b098c7","lane":"rust-test","parents":["faaca71086cff4fed3c2d807d98cb98e8e109ab4"],"secs":37,"stamp":"e9e196ae57c1ade22b877746e833074a","tree":"8f47fd989c5a00475c8cffaaa653e52c5d669d3c","v":1,"via":"run"}
Ci-Attestation: {"at":1791675987,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"27d2cac0c85813072ae7e008fc8e8cf07f906ed27f23d7ab1ed0fd217cb1682c","lane":"tier2-linux","parents":["faaca71086cff4fed3c2d807d98cb98e8e109ab4"],"secs":31,"stamp":"4b1516048525c6f50c1a51e6586f5259","tree":"8f47fd989c5a00475c8cffaaa653e52c5d669d3c","v":1,"via":"run"}
@zackees
zackees merged commit 7ab4771 into master Oct 11, 2026
23 checks passed
@zackees
zackees deleted the ci/rust-on-build 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