2020-07-15 10:16:34 +02:00
|
|
|
name: msvc
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-03-15 23:20:05 +01:00
|
|
|
branches: [ master ]
|
2020-07-15 10:16:34 +02:00
|
|
|
pull_request:
|
2021-03-15 23:20:05 +01:00
|
|
|
branches: [ master ]
|
2020-07-15 10:16:34 +02:00
|
|
|
|
|
|
|
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'
|
2020-07-18 19:32:19 +02:00
|
|
|
- uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
with:
|
|
|
|
arch : ${{ matrix.ARCH }}
|
|
|
|
- name: Install Dependencies
|
2020-07-15 10:16:34 +02:00
|
|
|
run: |
|
|
|
|
pip install --upgrade meson ninja fonttools
|
2020-07-18 19:32:19 +02:00
|
|
|
- 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
|
2020-07-15 10:16:34 +02:00
|
|
|
- name: Test
|
|
|
|
run: |
|
2020-07-18 19:32:19 +02:00
|
|
|
meson test --print-errorlogs --suite=harfbuzz -C build
|