From 512d73c74294b855fd4e6f8aed294cfac5be11c3 Mon Sep 17 00:00:00 2001 From: Nikolay Volosatov Date: Sat, 18 May 2024 09:24:23 -0400 Subject: [PATCH] Add retries to simulator install --- .github/workflows/unit-tests.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 52c4027c4..1838c8661 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -63,9 +63,11 @@ jobs: - name: Install Simulator if: ${{ matrix.runtime }} - shell: bash - timeout-minutes: 30 - run: sudo xcodes runtimes install --keep-archive '${{ matrix.platform }} ${{ matrix.runtime }}' + uses: nick-fields/retry@v2 + with: + timeout_minutes: 20 + max_attempts: 3 + command: sudo xcodes runtimes install --keep-archive '${{ matrix.platform }} ${{ matrix.runtime }}' - name: Run Unit Tests uses: bamx23/xcodebuild@os-version