Skip to content

Commit 682dd2f

Browse files
olilarkinclaude
andcommitted
Add platform filter and skip_release options to workflow
- Add 'platforms' input to build only specific platforms (comma-separated) e.g., "visionos" or "mac,ios" - defaults to "all" - Add 'skip_release' input to skip release creation when testing - Release job only runs when building all platforms and skip_release is false Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b4137eb commit 682dd2f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build-skia.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,25 @@ on:
99
required: false
1010
type: string
1111
default: 'chrome/m144'
12+
platforms:
13+
description: 'Platforms to build (comma-separated, or "all")'
14+
required: false
15+
type: string
16+
default: 'all'
1217
test_mode:
1318
description: 'Run in test mode (skip Skia build)'
1419
required: false
1520
type: boolean
1621
default: false
22+
skip_release:
23+
description: 'Skip creating release (useful for testing single platforms)'
24+
required: false
25+
type: boolean
26+
default: false
1727

1828
jobs:
1929
build-skia:
30+
if: ${{ inputs.platforms == 'all' || contains(inputs.platforms, matrix.platform) }}
2031
strategy:
2132
fail-fast: false
2233
matrix:
@@ -216,6 +227,7 @@ jobs:
216227
run: echo "skia_branch=${{ env.SKIA_BRANCH }}" >> $GITHUB_OUTPUT
217228

218229
create-release:
230+
if: ${{ !inputs.skip_release && inputs.platforms == 'all' }}
219231
needs: build-skia
220232
runs-on: ubuntu-latest
221233
steps:

0 commit comments

Comments
 (0)