Skip to content

Commit

Permalink
Get rid of control flow by cmd.exe
Browse files Browse the repository at this point in the history
Github workflow stopped using cmd.exe suddenly, and `||` and `&&`
seem not working in PowerShell.
  • Loading branch information
nobu committed Oct 24, 2019
1 parent b609bde commit b86af95
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit b86af95

Please sign in to comment.