diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2023-03-10 09:53:09 -0800 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2023-03-10 09:55:11 -0800 |
commit | dc141a37d3847022ed48db4eacdd1b77e497092c (patch) | |
tree | 903150cba6898ea18fdc15bdc442fa5a0336bb97 /.github | |
parent | af369db4d3833272b8ed443f7fcc2e757a0872eb (diff) | |
download | curl-dc141a37d3847022ed48db4eacdd1b77e497092c.tar.gz |
CI: retry a failed brew update too, not just brew install
Also, make sure an eventual failure ends up returning a failure code so
the job stops.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/macos.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index ba6cefc99..16077e7d8 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -96,7 +96,7 @@ jobs: # 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 + - run: "for i in 1 2 3; do brew update && brew bundle install --no-lock --file /tmp/Brewfile && break || { echo Error: wait to try again; sleep 10; false; } done" name: 'brew install' - run: python3 -m pip install impacket @@ -155,7 +155,7 @@ 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: "for i in 1 2 3; do brew update && brew bundle install --no-lock --file /tmp/Brewfile && break || { echo Error: wait to try again; sleep 10; false; } done" name: 'brew install' - run: python3 -m pip install impacket |