Repository navigation
Conversation
Proof in real PR CI (probe PRs #904–#908, closed after reading)Each probe was a one-line change on this branch. The control branched from master. I read which native jobs the run started, then cancelled the run.
So a macOS change starts the macOS runners, a Windows change starts the Windows runners, and the code macOS/Windows compile in a Linux SpeedReplaying #898's scope over the last 120 PR runs: native macOS+Windows runs drop from 92 to 58, saving about 25 native runner-minutes per affected PR (865 in total). This branch's fixes add native runs only for Linux- Linux cross-compiling with soldrEvaluated on #897 (#897 (comment)):
|
b309619 to
f3b1876
Compare
Refs #897. Fixes #896 together with #898 (merged).
Bug
#898 scopes an edit in a branch that excludes Linux to nothing, but that is the code macOS and Windows compile:
#elseof#ifdef __linux__(e.g.frontend/components/ColorSourceToolbar.cpp:63);#ifndef __linux__/#if !defined(__linux__);else()afterif(OS_LINUX).There are 90 Linux/BSD-keyed conditionals in libobs/frontend/shared/plugins.
RED / GREEN
FAILED (failures=2)against ci: Scope macOS and Windows jobs by hunk content (Refs #698, #700) #898.Ran 18 tests ... OK,./lintok. Other branches don't change:#elseafter both_WIN32and__APPLE__is still Linux only, and#if FOO/#elsestill selects nothing.Proof
Probes and measurements are in the comments below.