ruby-changes:57768
From: Kazuhiro <ko1@a...>
Date: Tue, 17 Sep 2019 18:02:26 +0900 (JST)
Subject: [ruby-changes:57768] 0785469a40 (master): `brew install` may fail, so try to use `tool/travis_retry.sh`
https://git.ruby-lang.org/ruby.git/commit/?id=0785469a40 From 0785469a400b00eb4576fedbf93b614c70eaf760 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> 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 ``` diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 36272f1..de05e21 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -18,10 +18,6 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/macos.yml#L18 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... 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: https://github.com/ruby/ruby/blob/trunk/.github/workflows/macos.yml#L29 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... zlib autoconf automake libtool readline - name: Set ENV run: | echo '##[set-env name=JOBS]'-j$((1 + $(sysctl -n hw.activecpu))) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/