Skip to content

Commit b369869

Browse files
committed
add platforms (maybe wont work)
1 parent 23ed9be commit b369869

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/common.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
target:
88
type: string
99
required: true
10+
11+
# The platforms to build on. Defaults to all.
12+
platforms:
13+
type: string
14+
required: false
15+
default: all
16+
1017
# By default, all platforms will be tested (see matrix in `spm` job).
1118
# To build instead of test, pass a comma or space separated string of
1219
# platforms.
@@ -56,7 +63,7 @@ jobs:
5663
matrix:
5764
os: [macos-15]
5865
xcode: [Xcode_16.2]
59-
platform: [iOS, tvOS, macOS, watchOS, catalyst, visionOS]
66+
platform: ${{ inputs.platforms == 'all' && ['iOS', 'tvOS', 'macOS', 'watchOS', 'catalyst', 'visionOS'] || join(inputs.platforms) }}
6067
include:
6168
- os: macos-14
6269
xcode: Xcode_16.2

0 commit comments

Comments
 (0)