ci(switch): run fused build only after offline selftest

Avoid burning the self-hosted Mac when the ubuntu packaging gate fails.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Andrew Quenehen
2026-08-02 22:08:49 -03:00
parent 669c9f4d8b
commit d13064ee64
3 changed files with 10 additions and 4 deletions
+5 -3
View File
@@ -144,9 +144,11 @@ jobs:
switch-build:
name: Switch fused build
needs: switch-changes
if: >-
needs.switch-changes.outputs.changed == 'true'
needs: [switch-changes, switch-selftest]
if: |
always()
&& needs.switch-changes.outputs.changed == 'true'
&& needs.switch-selftest.result == 'success'
&& github.repository == 'bryanthaboi/gen1recomp'
&& (github.event_name != 'pull_request'
|| github.event.pull_request.head.repo.full_name == github.repository)