diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-09-17 16:59:47 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <znz@users.noreply.github.com> | 2019-09-17 18:02:03 +0900 |
commit | 0785469a400b00eb4576fedbf93b614c70eaf760 (patch) | |
tree | 79e364ae3a6fb5591222bb3bc6b672985192f082 /.github/workflows | |
parent | 68ffb679d461722da6ef0bcdb2f18d8929d98204 (diff) | |
download | ruby-0785469a400b00eb4576fedbf93b614c70eaf760.tar.gz |
`brew install` may fail, so try to use `tool/travis_retry.sh`
https://github.com/ruby/ruby/runs/224877570#step:3:1008
```
Error: No such file or directory @ dir_s_rmdir - /Users/runner/Library/Caches/Homebrew/downloads/ca756e367eb98d2b525e72b311633c27ffc74eca825a5392153b3488d1adb732--libssh2-1.9.0.mojave.bottle.tar.gz
```
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/macos.yml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 36272f1abf..de05e217bb 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -18,10 +18,6 @@ jobs: run: | sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate - - name: Install libraries - run: | - brew update || { sleep 5 && brew update; } || { sleep 60 && brew update; } - brew install gdbm gmp libffi openssl@1.1 zlib autoconf automake libtool readline # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork. - name: Checkout ruby/ruby run: git clone --depth=50 https://github.com/ruby/ruby . && git reset --hard "$GITHUB_SHA" @@ -33,6 +29,11 @@ jobs: GITHUB_BRANCH: ${{ github.event.pull_request.head.ref }} GITHUB_REPO: ${{ github.event.pull_request.head.repo.full_name }} if: github.event_name == 'pull_request' + - name: Install libraries + run: | + export WAITS='5 60' + tool/travis_retry.sh brew update + tool/travis_retry.sh brew install gdbm gmp libffi openssl@1.1 zlib autoconf automake libtool readline - name: Set ENV run: | echo '##[set-env name=JOBS]'-j$((1 + $(sysctl -n hw.activecpu))) |