summaryrefslogtreecommitdiff
path: root/.github/workflows/windows.yml
blob: 9debf964cc50bd50ca8dcac72c2dc6f8dbd831c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: windows

on: [push, pull_request]

jobs:
  build:
    runs-on: windows-latest
    strategy:
      fail-fast: false
      matrix:
        ruby: [ mingw, mswin, 3.0, 2.7, 2.6, 2.5, 2.4 ]
    steps:
      - uses: actions/checkout@v2
      - name: Install libraries with vcpkg
        run: |
          vcpkg --triplet x64-windows install libyaml
      - name: link libraries
        run: |
          for %%I in (C:\vcpkg\installed\x64-windows\bin\*.dll) do (
            if not %%~nI == readline mklink %%~nxI %%I
          )
      - name: Set up Ruby
        uses: MSP-Greg/setup-ruby-pkgs@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          mingw: _upgrade_
      - name: Install dependencies
        run: bundle install
      - name: Compile
        run: rake compile -- --with-libyaml-dir=C:/vcpkg/installed/x64-windows
      - name: Run test
        run: rake