Skip to content

Commit 502f031

Browse files
committed
WIP
1 parent 66f009a commit 502f031

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,25 @@ jobs:
4949
defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES
5050
defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
5151
52+
- name: Select Xcode version
53+
run: sudo xcodes select ${{ matrix.xcode }}
54+
55+
- name: List Runtimes & Simulators
56+
run: xcrun simctl list
57+
5258
- if: matrix.platform != 'mac-catalyst'
5359
name: Download Required Runtimes
5460
run: |
5561
sudo xcodes select ${{ matrix.xcode }}
56-
if ! xcodebuild -downloadPlatform ${{ matrix.platform }}; then
57-
code=$?
58-
if [ $code -ne 70 ]; then
59-
exit $code
60-
else
61-
echo "Ignoring exit code 70 from xcodebuild -downloadPlatform"
62+
RUNTIME="${{ fromJSON(env.SIMULATORS_JSON)[matrix.xcode][matrix.platform].runtime }}"
63+
if ! xcrun simctl list runtimes | grep -q "$RUNTIME"; then
64+
if ! xcodebuild -downloadPlatform ${{ matrix.platform }}; then
65+
code=$?
66+
if [ $code -ne 70 ]; then
67+
exit $code
68+
else
69+
echo "Ignoring exit code 70 from xcodebuild -downloadPlatform"
70+
fi
6271
fi
6372
fi
6473

0 commit comments

Comments
 (0)