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

Get rid of control flow by cmd.exe

Github workflow stopped using cmd.exe suddenly, and `||` and `&&`
seem not working in PowerShell.
This commit is contained in:
Nobuyoshi Nakada 2019-10-25 02:04:14 +09:00
parent b609bdeb53
commit b86af95c5b
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -24,20 +24,12 @@ jobs:
steps:
- name: Install libraries with vcpkg
run: |
vcpkg --triplet x64-windows install %dependencies% || (
sleep 4 && vcpkg --triplet x64-windows install %dependencies%
) || (
sleep 25 && vcpkg --triplet x64-windows install %dependencies%
)
vcpkg --triplet x64-windows install %dependencies%
env:
dependencies: openssl readline zlib
- name: Install libraries with chocolatey
run: |
choco install winflexbison3 || (
sleep 4 && choco install winflexbison3
) || (
sleep 25 && choco install winflexbison3
)
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 }}