1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Roughly retry choco install commands

to deal with random failures:
https://github.com/ruby/ruby/runs/210617845
This commit is contained in:
Takashi Kokubun 2019-09-03 21:03:10 +09:00
parent afe8bf2489
commit 7cb19b3f5b
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -31,7 +31,12 @@ jobs:
env:
dependencies: openssl readline zlib
- name: Install libraries with chocolatey
run: choco install winflexbison3
run: |
choco install winflexbison3 || (
sleep 4 && choco install winflexbison3
) || (
sleep 25 && choco install winflexbison3
)
# 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 }}