Skip to content

Commit a3baa3f

Browse files
committed
Updated GitHub CI
1 parent cf64947 commit a3baa3f

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
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
xcode-version: latest-stable
3939
- name: Build
40-
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=macOS,name=Any Mac" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
40+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=macOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
4141
- name: Unit Tests
4242
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "platform=macOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
4343

@@ -52,7 +52,7 @@ jobs:
5252
- name: Set Package to Swift 6.0
5353
run: swift package tools-version --set "6.0"
5454
- name: Build
55-
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=macOS,name=Any Mac" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
55+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=macOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
5656
- name: Unit Tests
5757
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "platform=macOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
5858

@@ -65,7 +65,7 @@ jobs:
6565
with:
6666
xcode-version: latest-stable
6767
- name: Build
68-
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=macOS,variant=Mac Catalyst,name=Any Mac" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
68+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=macOS,variant=Mac Catalyst" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
6969
- name: Unit Tests
7070
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "platform=macOS,variant=Mac Catalyst" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
7171

@@ -77,8 +77,10 @@ jobs:
7777
- uses: maxim-lobanov/setup-xcode@v1
7878
with:
7979
xcode-version: latest-stable
80+
- name: Prepare Platform
81+
run: xcodebuild -downloadPlatform iOS
8082
- 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]}
83+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=iOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
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.
@@ -113,8 +115,10 @@ jobs:
113115
- uses: maxim-lobanov/setup-xcode@v1
114116
with:
115117
xcode-version: latest-stable
118+
- name: Prepare Platform
119+
run: xcodebuild -downloadPlatform tvOS
116120
- 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]}
121+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=tvOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
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.
@@ -149,8 +153,10 @@ jobs:
149153
- uses: maxim-lobanov/setup-xcode@v1
150154
with:
151155
xcode-version: latest-stable
156+
- name: Prepare Platform
157+
run: xcodebuild -downloadPlatform watchOS
152158
- 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]}
159+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=watchOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
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.

0 commit comments

Comments
 (0)