summaryrefslogtreecommitdiff
path: root/.github/workflows/windows.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/windows.yml')
-rw-r--r--.github/workflows/windows.yml20
1 files changed, 19 insertions, 1 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 6dac1a4..b7896fc 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -11,12 +11,30 @@ jobs:
ruby: [ mingw, mswin, 3.0, 2.7, 2.6, 2.5, 2.4 ]
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:
ruby-version: ${{ matrix.ruby }}
- mingw: _upgrade_
+ mingw: _upgrade_ libyaml
- name: Install dependencies
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
+
+defaults:
+ run:
+ shell: cmd