Skip to content

Commit 56d4fb6

Browse files
ci(audience): add selfhosted_only flag for workflow_dispatch (SDK-255)
- Adds a workflow_dispatch input selfhosted_only (boolean, default false) that, when true, skips the playmode (Win/macOS), playmode-linux (GameCI), and mobile-build jobs so only the self-hosted Linux PlayMode cells run. - Resolves the Unity seat-pool contention that has been failing the manual self-hosted Linux validation. With all 22 jobs firing simultaneously the seat pool fills before the self-hosted Linux job can activate; with the flag set only the 2 self-hosted Linux cells need a seat. - Default-false preserves the existing "workflow_dispatch fires everything" behaviour for casual manual triggers. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2658686 commit 56d4fb6

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/test-audience-sample-app.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@ on:
1313
- 'examples/audience/ProjectSettings/**'
1414
- '.github/workflows/test-audience-sample-app.yml'
1515
workflow_dispatch:
16+
inputs:
17+
selfhosted_only:
18+
description: Run only the self-hosted Linux PlayMode validation (skip Win, macOS, GameCI Linux, mobile)
19+
type: boolean
20+
default: false
1621

1722
concurrency:
1823
group: ${{ github.workflow }}-${{ github.ref }}
1924
cancel-in-progress: true
2025

2126
jobs:
2227
playmode:
23-
if: github.event.pull_request.head.repo.fork == false || github.event_name == 'workflow_dispatch'
28+
if: github.event.pull_request.head.repo.fork == false || (github.event_name == 'workflow_dispatch' && inputs.selfhosted_only != true)
2429
name: ${{ matrix.target }} / ${{ matrix.backend }} / Unity ${{ matrix.unity }}
2530
strategy:
2631
fail-fast: false
@@ -440,7 +445,7 @@ jobs:
440445
# Linux PlayMode runs on GitHub-hosted Ubuntu via GameCI Docker, not on the
441446
# self-hosted matrix above, to keep self-hosted machines free for Win/macOS.
442447
playmode-linux:
443-
if: github.event.pull_request.head.repo.fork == false || github.event_name == 'workflow_dispatch'
448+
if: github.event.pull_request.head.repo.fork == false || (github.event_name == 'workflow_dispatch' && inputs.selfhosted_only != true)
444449
name: ${{ matrix.target }} / ${{ matrix.backend }} / Unity ${{ matrix.unity }}
445450
runs-on: ubuntu-latest-8-cores
446451
strategy:
@@ -504,7 +509,7 @@ jobs:
504509
# Note: Unity 6 cells use 6000.4.5f1 (the latest patch with a GameCI image);
505510
# 6000.4.0f1 does not have a published GameCI Docker image.
506511
mobile-build:
507-
if: github.event.pull_request.head.repo.fork == false || github.event_name == 'workflow_dispatch'
512+
if: github.event.pull_request.head.repo.fork == false || (github.event_name == 'workflow_dispatch' && inputs.selfhosted_only != true)
508513
name: ${{ matrix.target }} / IL2CPP / Unity ${{ matrix.unity }}
509514
runs-on: ubuntu-latest-8-cores
510515
strategy:

0 commit comments

Comments
 (0)