1name: msvc 2 3on: 4 push: 5 branches: [ master ] 6 pull_request: 7 branches: [ master ] 8 9jobs: 10 msvc: 11 runs-on: ${{ matrix.os }} 12 13 strategy: 14 matrix: 15 os: [windows-2016, windows-latest] 16 include: 17 - name: msvc-2017-x86 18 os: windows-2016 19 ARCH: x86 20 - name: msvc-2019-amd64 21 os: windows-latest 22 ARCH: amd64 23 name: ${{ matrix.name }} 24 25 steps: 26 - uses: actions/checkout@v2 27 - uses: actions/setup-python@v1 28 with: 29 python-version: '3.x' 30 - uses: ilammy/msvc-dev-cmd@v1 31 with: 32 arch : ${{ matrix.ARCH }} 33 - name: Install Dependencies 34 run: | 35 pip install --upgrade meson ninja fonttools 36 - name: Build 37 run: | 38 # This dir contains a pkg-config which meson will happily use and later fail, so remove it 39 $env:path = ($env:path.Split(';') | Where-Object { $_ -ne 'C:\Strawberry\perl\bin' }) -join ';' 40 41 meson setup build ` 42 --wrap-mode=default ` 43 --buildtype=release ` 44 -Dglib=enabled ` 45 -Dfreetype=enabled ` 46 -Dgdi=enabled ` 47 -Ddirectwrite=enabled 48 49 meson compile -C build 50 - name: Test 51 run: | 52 meson test --print-errorlogs --suite=harfbuzz -C build 53