[CI] Retry runtime download on timeout or error (#247)

This commit is contained in:
David Roman 2023-06-08 12:40:41 +01:00 committed by GitHub
parent a5a1d7c305
commit 80356a6b96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 4 deletions

View File

@ -106,10 +106,16 @@ jobs:
run: brew install xcbeautify
- if: ${{ matrix.install }}
name: Install Required Runtime
run: |
brew install xcodesorg/made/xcodes
sudo xcodes runtimes install '${{ matrix.runtime }}'
name: Install xcodes
run: brew install xcodesorg/made/xcodes
- if: ${{ matrix.install }}
name: Install Required Runtime (${{ matrix.runtime }})
uses: nick-fields/retry@v2
with:
timeout_minutes: 12
max_attempts: 3
command: sudo xcodes runtimes install '${{ matrix.runtime }}'
- name: List Available Simulators
run: xcrun simctl list devices available