Skip to content

Commit 656bbdb

Browse files
committed
Updated GitHub CI
1 parent fa2d217 commit 656bbdb

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ jobs:
7878
with:
7979
xcode-version: latest-stable
8080
- name: Build
81-
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=iOS Simulator,name=Any iOS Device" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
81+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=iOS,name=Any iOS Device" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
82+
- name: Prepare Simulator
83+
run: xcodebuild -downloadPlatform iOS
8284
- name: Prepare Destination Device Name
8385
id: destnameprep
8486
# As of GitHub's updates to the macOS-15 runner summer 2025, randomly Xcode may not list any simulators.
@@ -114,7 +116,9 @@ jobs:
114116
with:
115117
xcode-version: latest-stable
116118
- name: Build
117-
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=tvOS Simulator,name=Any tvOS Simulator Device" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
119+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=tvOS,name=Any tvOS Device" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
120+
- name: Prepare Simulator
121+
run: xcodebuild -downloadPlatform tvOS
118122
- name: Prepare Destination Device Name
119123
id: destnameprep
120124
# As of GitHub's updates to the macOS-15 runner summer 2025, randomly Xcode may not list any simulators.
@@ -150,7 +154,9 @@ jobs:
150154
with:
151155
xcode-version: latest-stable
152156
- name: Build
153-
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=watchOS Simulator,name=Any watchOS Simulator Device" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
157+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=watchOS,name=Any watchOS Device" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
158+
- name: Prepare Simulator
159+
run: xcodebuild -downloadPlatform watchOS
154160
- name: Prepare Destination Device Name
155161
id: destnameprep
156162
# As of GitHub's updates to the macOS-15 runner summer 2025, randomly Xcode may not list any simulators.
@@ -191,18 +197,18 @@ jobs:
191197
- name: Movie Timecode - Build (macOS)
192198
run: xcodebuild build -project "Examples/Movie Timecode/Movie Timecode.xcodeproj" -scheme "Movie Timecode" -destination "generic/platform=macOS,name=Any Mac" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
193199
- name: Movie Timecode - Build (iOS)
194-
run: xcodebuild build -project "Examples/Movie Timecode/Movie Timecode.xcodeproj" -scheme "Movie Timecode" -destination "generic/platform=iOS Simulator,name=Any iOS Simulator Device" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
200+
run: xcodebuild build -project "Examples/Movie Timecode/Movie Timecode.xcodeproj" -scheme "Movie Timecode" -destination "generic/platform=iOS,name=Any iOS Device" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
195201

196202
- name: Timecode UI - Resolve Package Dependencies # needed because sometimes xcodebuild fails otherwise
197203
run: xcodebuild -project "Examples/Timecode UI/Timecode UI.xcodeproj" -resolvePackageDependencies | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
198204
- name: Timecode UI - Build (macOS)
199205
run: xcodebuild build -project "Examples/Timecode UI/Timecode UI.xcodeproj" -scheme "Timecode UI" -destination "generic/platform=macOS,name=Any Mac" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
200206
- name: Timecode UI - Build (iOS)
201-
run: xcodebuild build -project "Examples/Timecode UI/Timecode UI.xcodeproj" -scheme "Timecode UI" -destination "generic/platform=iOS Simulator,name=Any iOS Simulator Device" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
207+
run: xcodebuild build -project "Examples/Timecode UI/Timecode UI.xcodeproj" -scheme "Timecode UI" -destination "generic/platform=iOS,name=Any iOS Device" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
202208

203209
- name: Timecode Math - Resolve Package Dependencies # needed because sometimes xcodebuild fails otherwise
204210
run: xcodebuild -project "Examples/Timecode Math/Timecode Math.xcodeproj" -resolvePackageDependencies | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
205211
- name: Timecode Math - Build (macOS)
206212
run: xcodebuild build -project "Examples/Timecode Math/Timecode Math.xcodeproj" -scheme "Timecode Math" -destination "generic/platform=macOS,name=Any Mac" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
207213
- name: Timecode Math - Build (iOS)
208-
run: xcodebuild build -project "Examples/Timecode Math/Timecode Math.xcodeproj" -scheme "Timecode Math" -destination "generic/platform=iOS Simulator,name=Any iOS Simulator Device" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
214+
run: xcodebuild build -project "Examples/Timecode Math/Timecode Math.xcodeproj" -scheme "Timecode Math" -destination "generic/platform=iOS,name=Any iOS Device" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}

0 commit comments

Comments
 (0)