Skip to content

Commit 717a725

Browse files
authored
CI: download default runtime if missing (#497)
1 parent c36fd4d commit 717a725

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,12 @@ jobs:
120120
echo "SCRIPT_PLATFORM=$SCRIPT_PLATFORM" >> $GITHUB_ENV
121121
122122
- if: ${{ env.PLATFORM != 'macCatalyst' && env.PLATFORM != 'macOS' }}
123-
name: Check for ${{ env.RUNTIME }} runtime
123+
name: Download Default ${{ env.PLATFORM }} Runtime
124+
run: xcodebuild -downloadPlatform ${{ env.PLATFORM }}
125+
continue-on-error: true
126+
127+
- if: ${{ env.PLATFORM != 'macCatalyst' && env.PLATFORM != 'macOS' }}
128+
name: Check for ${{ env.RUNTIME }} Runtime
124129
run: |
125130
if xcrun simctl list runtimes | grep -q "$RUNTIME"; then
126131
echo "has_runtime=true" >> "$GITHUB_ENV"
@@ -140,7 +145,7 @@ jobs:
140145
run: xcodes runtimes --include-betas
141146

142147
- if: env.has_runtime == 'false'
143-
name: Download Required Runtime (${{ env.RUNTIME }})
148+
name: Download Required ${{ env.RUNTIME }} Runtime
144149
uses: nick-fields/retry@v3
145150
with:
146151
timeout_minutes: 15

0 commit comments

Comments
 (0)