From 7d41d783634b31d2f23c0ad72bb821f01c7d5c21 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 20 Mar 2022 14:59:25 +0900 Subject: Install libyaml with vcpkg only on mswin --- .github/workflows/windows.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.github') diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 22bef4b..b7896fc 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -12,13 +12,16 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install libraries with vcpkg + id: vcpkg run: | vcpkg --triplet x64-windows install libyaml + if: ${{ matrix.ruby == 'mswin' }} - name: link libraries run: | for %%I in (C:\vcpkg\installed\x64-windows\bin\*.dll) do ( mklink %%~nxI %%I ) + if: ${{ steps.vcpkg.conclusion == 'success' }} - name: Set up Ruby uses: MSP-Greg/setup-ruby-pkgs@v1 with: @@ -28,6 +31,7 @@ jobs: run: bundle install - name: Compile run: rake compile -- --with-libyaml-dir=C:/vcpkg/installed/x64-windows + if: ${{ matrix.ruby == 'mswin' }} - name: Run test run: rake -- cgit v1.2.1