summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Burke <kevin@burke.dev>2021-11-03 16:41:57 -0700
committerDaniel Stenberg <daniel@haxx.se>2021-11-04 13:55:03 +0100
commitc84435829955f1503e508bc86a9ce915da2007ec (patch)
treedf8eb53f633f7214bbe0d3bff4130f2be7acfd08
parentc6a66ccb5ff3436bc299e2a2e2a8fa3d271bdf24 (diff)
downloadcurl-c84435829955f1503e508bc86a9ce915da2007ec.tar.gz
.github: retry macos "brew install" command on failure
Previously we saw errors attempting to run "brew install", see https://github.com/curl/curl/runs/4095721123?check_suite_focus=true for an example, since this command is idempotent, it is safe to run again. Closes #7955
-rw-r--r--.github/workflows/macos.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 400f469cd..aa4c24d5a 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -70,7 +70,10 @@ jobs:
- run: echo libtool autoconf automake pkg-config ${{ matrix.build.install }} | xargs -Ix -n1 echo brew '"x"' > /tmp/Brewfile
name: 'brew bundle'
- - run: brew update && brew bundle install --no-lock --file /tmp/Brewfile
+ # 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
+ - run: brew update && for i in 1 2 3; do brew bundle install --no-lock --file /tmp/Brewfile && break || sleep 1; done
name: 'brew install'
- uses: actions/checkout@v2