Skip to content

Commit a4af794

Browse files
committed
Updated GitHub CI
1 parent 0ce7713 commit a4af794

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,13 @@ jobs:
7777
- uses: maxim-lobanov/setup-xcode@v1
7878
with:
7979
xcode-version: latest-stable
80-
- name: Prepare Platform
80+
- name: Boostrap Platforms
81+
# Workaround for Xcode/GitHub runner issues finding simulators.
82+
# see https://github.com/actions/runner-images/issues/12758#issuecomment-3206748945
83+
run: xcrun simctl list
84+
- name: Download Platform
85+
# Workaround for Xcode/GitHub runner issues finding simulators.
86+
# see https://github.com/actions/runner-images/issues/12758#issuecomment-3206748945
8187
run: xcodebuild -downloadPlatform iOS
8288
- name: Build
8389
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=iOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
@@ -115,7 +121,13 @@ jobs:
115121
- uses: maxim-lobanov/setup-xcode@v1
116122
with:
117123
xcode-version: latest-stable
118-
- name: Prepare Platform
124+
- name: Boostrap Platforms
125+
# Workaround for Xcode/GitHub runner issues finding simulators.
126+
# see https://github.com/actions/runner-images/issues/12758#issuecomment-3206748945
127+
run: xcrun simctl list
128+
- name: Download Platform
129+
# Workaround for Xcode/GitHub runner issues finding simulators.
130+
# see https://github.com/actions/runner-images/issues/12758#issuecomment-3206748945
119131
run: xcodebuild -downloadPlatform tvOS
120132
- name: Build
121133
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=tvOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}
@@ -153,7 +165,13 @@ jobs:
153165
- uses: maxim-lobanov/setup-xcode@v1
154166
with:
155167
xcode-version: latest-stable
156-
- name: Prepare Platform
168+
- name: Boostrap Platforms
169+
# Workaround for Xcode/GitHub runner issues finding simulators.
170+
# see https://github.com/actions/runner-images/issues/12758#issuecomment-3206748945
171+
run: xcrun simctl list
172+
- name: Download Platform
173+
# Workaround for Xcode/GitHub runner issues finding simulators.
174+
# see https://github.com/actions/runner-images/issues/12758#issuecomment-3206748945
157175
run: xcodebuild -downloadPlatform watchOS
158176
- name: Build
159177
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "$SCHEME" -destination "generic/platform=watchOS" | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]}

0 commit comments

Comments
 (0)