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 ]