Fix Linux Gitea workflow gates
Some checks failed
Native code generation / deterministic (push) Failing after 10m31s
JPEG 2000 feature / linux (push) Has been cancelled
Skia feature / linux (push) Has been cancelled
Imaging and meshing gate / native (push) Has been cancelled

This commit is contained in:
2026-08-09 11:51:15 +00:00
parent c7777d42f5
commit 2274dd9a91
4 changed files with 20 additions and 7 deletions

View File

@@ -109,10 +109,15 @@ def check_benchmarks_and_ci() -> None:
for name, path in workflows.items():
if not path.is_file():
raise SystemExit(f"missing {name} native-feature workflow")
text = path.read_text().lower()
missing = [platform for platform in ("linux", "macos", "windows") if platform not in text]
if missing:
raise SystemExit(f"{name} workflow lacks platforms: " + ", ".join(missing))
runners = re.findall(r"(?m)^\s*runs-on:\s*([^\s#]+)", path.read_text().lower())
if not runners:
raise SystemExit(f"{name} workflow has no runner")
unsupported = sorted({runner for runner in runners if runner != "ubuntu-latest"})
if unsupported:
raise SystemExit(
f"{name} workflow must use only ubuntu-latest, found: "
+ ", ".join(unsupported)
)
def main() -> None:
@@ -122,7 +127,7 @@ def main() -> None:
check_benchmarks_and_ci()
print(
"milestone 06 audit: owned Rust has no stubs; 48 reviewed parity cases, "
"optional native features, benchmarks, and cross-platform workflows are complete"
"optional native features, benchmarks, and Linux-only Gitea workflows are complete"
)