Skip to content

Commit

Permalink
build: add retry to brew install
Browse files Browse the repository at this point in the history
  • Loading branch information
dynobo committed Oct 22, 2023
1 parent a25830e commit 44a6da9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 44a6da9

Please sign in to comment.