Merge bitcoin-core/secp256k1#1074: ci: Retry brew update a few times to avoid random failures

e51ad3b737 ci: Retry `brew update` a few times to avoid random failures (Tim Ruffing)
b1cb969e8a ci: Revert "Attempt to make macOS builds more reliable" (Tim Ruffing)

Pull request description:

ACKs for top commit:
  jonasnick:
    ACK e51ad3b737

Tree-SHA512: cb0b81ac8d81fe8ea58afa7382d3f922bd4eb713645c5d0b99f9de963c9906273f5d573a9272e8f6cdb16ffcca5e162c088cc2b0772278f68930f8cb726824be
This commit is contained in:
Jonas Nick 2022-02-08 17:11:42 +00:00
commit 077528317d
No known key found for this signature in database
GPG Key ID: 4861DBF262123605
1 changed files with 2 additions and 3 deletions

View File

@ -135,9 +135,8 @@ task:
## - rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress ## - rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
## ##
brew_valgrind_pre_script: brew_valgrind_pre_script:
# Reinstall brew. We could do `brew update` instead but that often fails. # Retry a few times because this tends to fail randomly.
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" - for i in {1..5}; do brew update && break || sleep 15; done
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- brew config - brew config
- brew tap LouisBrunner/valgrind - brew tap LouisBrunner/valgrind
# Fetch valgrind source but don't build it yet. # Fetch valgrind source but don't build it yet.