From 44a6da9cbffd34e2c29ab9dc8b9506a34240b642 Mon Sep 17 00:00:00 2001 From: dynobo Date: Sun, 22 Oct 2023 17:38:17 +0200 Subject: [PATCH] build: add retry to brew install --- .github/workflows/coverage.yaml | 13 +++++++++---- .github/workflows/python.yaml | 13 +++++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index c8f7245a..502739d2 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -53,10 +53,15 @@ jobs: - name: Prepare macOS if: matrix.os == 'macos-12' - run: | - brew install pkg-config tesseract tesseract-lang dylibbundler - brew info tesseract - "/Library/Application Support/VMware Tools/vmware-resolutionSet" 1920 1080 + uses: nick-fields/retry@v2 # brew install sometimes fails on macOS + with: + timeout_minutes: 5 + max_attempts: 3 + retry_on: error + command: | + brew install pkg-config tesseract tesseract-lang dylibbundler + brew info tesseract + "/Library/Application Support/VMware Tools/vmware-resolutionSet" 1920 1080 - name: Prepare Windows if: matrix.os == 'windows-2022' diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index 2e1387a5..947004f3 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -77,10 +77,15 @@ jobs: - name: Prepare macOS if: matrix.os == 'macos-12' - run: | - brew install pkg-config tesseract tesseract-lang dylibbundler - brew info tesseract - "/Library/Application Support/VMware Tools/vmware-resolutionSet" 1920 1080 + uses: nick-fields/retry@v2 # brew install sometimes fails on macOS + with: + timeout_minutes: 5 + max_attempts: 3 + retry_on: error + command: | + brew install pkg-config tesseract tesseract-lang dylibbundler + brew info tesseract + "/Library/Application Support/VMware Tools/vmware-resolutionSet" 1920 1080 - name: Prepare Windows if: matrix.os == 'windows-2022'