GHA: add timeouts to mitigate hung brew install step

Ref: https://github.com/curl/curl/actions/runs/19736703410/job/56550251534?pr=19723

Closes #19726
This commit is contained in:
Viktor Szakats 2025-11-27 14:19:48 +01:00
parent bbb929112b
commit 71e9920fcd
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
4 changed files with 6 additions and 0 deletions

View file

@ -94,6 +94,7 @@ jobs:
steps:
- name: 'brew install'
if: ${{ matrix.build.configure }}
timeout-minutes: 5
run: |
# shellcheck disable=SC2181,SC2034
while [[ $? == 0 ]]; do for i in 1 2 3; do if brew update && brew install automake libtool; then break 2; else echo Error: wait to try again; sleep 10; fi; done; false Too many retries; done
@ -350,6 +351,7 @@ jobs:
steps:
- name: 'brew install'
timeout-minutes: 5
# Run this command with retries because of spurious failures seen
# while running the tests, for example
# https://github.com/curl/curl/runs/4095721123?check_suite_focus=true