aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/msvc-ci.yml
blob: 7c9f5bc7637ac52dcdebd8447bf77d17b767765a (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: msvc

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  msvc:
    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [windows-2016, windows-latest]
        include:
          - name: msvc-2017-x86
            os: windows-2016
            ARCH: x86
          - name: msvc-2019-amd64
            os: windows-latest
            ARCH: amd64
    name: ${{ matrix.name }}

    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v1
        with:
          python-version: '3.x'
      - uses: ilammy/msvc-dev-cmd@v1
        with:
          arch : ${{ matrix.ARCH }}
      - name: Install Dependencies
        run: |
          pip install --upgrade meson ninja fonttools
      - name: Build
        run: |
          # This dir contains a pkg-config which meson will happily use and later fail, so remove it
          $env:path = ($env:path.Split(';') | Where-Object { $_ -ne 'C:\Strawberry\perl\bin' }) -join ';'

          meson setup build `
            --wrap-mode=default `
            --buildtype=release `
            -Dglib=enabled `
            -Dfreetype=enabled `
            -Dgdi=enabled `
            -Ddirectwrite=enabled

          meson compile -C build
      - name: Test
        run: |
          meson test --print-errorlogs --suite=harfbuzz -C build