Skip to content

Commit 80356a6

Browse files
authored
[CI] Retry runtime download on timeout or error (#247)
1 parent a5a1d7c commit 80356a6

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,16 @@ jobs:
106106
run: brew install xcbeautify
107107

108108
- if: ${{ matrix.install }}
109-
name: Install Required Runtime
110-
run: |
111-
brew install xcodesorg/made/xcodes
112-
sudo xcodes runtimes install '${{ matrix.runtime }}'
109+
name: Install xcodes
110+
run: brew install xcodesorg/made/xcodes
111+
112+
- if: ${{ matrix.install }}
113+
name: Install Required Runtime (${{ matrix.runtime }})
114+
uses: nick-fields/retry@v2
115+
with:
116+
timeout_minutes: 12
117+
max_attempts: 3
118+
command: sudo xcodes runtimes install '${{ matrix.runtime }}'
113119

114120
- name: List Available Simulators
115121
run: xcrun simctl list devices available

0 commit comments

Comments
 (0)