From ce7ad236fc9cfa465e2b4882b07f70e58a769526 Mon Sep 17 00:00:00 2001 From: Ethan Pippin Date: Tue, 16 May 2023 16:26:33 -0600 Subject: [PATCH] Update ci.yml (#778) --- .github/workflows/ci.yml | 17 ++++++++++++----- .github/workflows/lint-pr.yaml | 2 ++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1350f4db..bb66d5a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,8 @@ on: branches: [ main ] pull_request: types: + - opened + - reopened - synchronize - ready_for_review branches: [ main ] @@ -46,9 +48,14 @@ jobs: key: ${{ runner.os }}-${{ matrix.scheme }}-spm-${{ hashFiles('**/Package.resolved') }} restore-keys: ${{ runner.os }}-${{ matrix.scheme }}-spm- - - name: xcodebuild! - run: | - xcodebuild build -project "Swiftfin.xcodeproj" \ - -scheme "${{ matrix.scheme }}" \ - CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO + - name: Build + uses: nick-fields/retry@v2 + with: + max_attempts: 3 + retry_on: error + timeout_minutes: 60 + command: | + xcodebuild build -project "Swiftfin.xcodeproj" \ + -scheme "${{ matrix.scheme }}" \ + CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO diff --git a/.github/workflows/lint-pr.yaml b/.github/workflows/lint-pr.yaml index cfb21b52..be5b73de 100644 --- a/.github/workflows/lint-pr.yaml +++ b/.github/workflows/lint-pr.yaml @@ -3,6 +3,8 @@ name: "Lint 🧹" on: pull_request: types: + - opened + - reopened - synchronize - ready_for_review branches: [ main ]