From 0785469a400b00eb4576fedbf93b614c70eaf760 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Tue, 17 Sep 2019 16:59:47 +0900 Subject: `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 ``` --- .github/workflows/macos.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to '.github') 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))) -- cgit v1.2.3