Skip to content

Commit e06a1b0

Browse files
Build workflows: run-name per distro and platform (#19)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ca0a456 commit e06a1b0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎tools/robostack.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ def generate_gha(distro: str, args: list[str]) -> int:
281281
# Edit the text: a YAML round trip would turn the `on:` key into `true:` (YAML 1.1).
282282
for wf in sorted(set(d.glob("*.yml")) - before):
283283
lines = wf.read_text().splitlines()
284-
lines = [f"name: {distro} {l[6:]}" if l.startswith("name: ") else l for l in lines]
284+
# all build branches share .github/workflows/build.yaml, which GitHub lists as one
285+
# workflow: run-name tells the runs apart
286+
lines = [f"name: build\nrun-name: {distro} {ns.platform}" if l.startswith("name: ") else l for l in lines]
285287
if ns.platform == "win-64" and not any("build-ci" in l for l in lines):
286288
raise SystemExit(f"{wf}: the Windows workflow doesn't use .scripts/build_win.bat")
287289
if any(l.startswith("env:") for l in lines):

0 commit comments

Comments
 (0)