Use GitHub Actions for msvc bots

This commit is contained in:
Ebrahim Byagowi 2020-07-15 12:46:34 +04:30 committed by Christoph Reiter
parent 7e3edfa454
commit 3a46ae5127
2 changed files with 38 additions and 37 deletions

38
.github/workflows/msvc-ci.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: msvc
on:
push:
pull_request:
jobs:
msvc:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2016, windows-latest]
include:
- name: msvc-2017-x86
os: windows-2016
VCVARSALLPATH: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
ARCH: x86
- name: msvc-2019-amd64
os: windows-latest
VCVARSALLPATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
ARCH: amd64
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Build
shell: cmd
run: |
pip install --upgrade meson ninja fonttools
"${{ matrix.VCVARSALLPATH }}" ${{ matrix.ARCH }} && meson setup build --wrap-mode=default --buildtype=release -Dglib=enabled -Dfreetype=enabled -Dgdi=enabled -Ddirectwrite=enabled && meson test --print-errorlogs --suite=harfbuzz -Cbuild
- name: Test
shell: cmd
run: |
meson test --print-errorlogs --suite=harfbuzz -Cbuild

View File

@ -1,37 +0,0 @@
platform: x64
environment:
matrix:
- vcvarsallpath: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat
arch: amd64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
vcvarsallpath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat
arch: x86
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
vcvarsallpath: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat
arch: amd64
build_script:
- set "PYTHON_ROOT=C:\python37-x64"
- set "PATH=%PYTHON_ROOT%;%PYTHON_ROOT%\Scripts;%PATH%"
- pip install --upgrade meson fonttools
- '"%vcvarsallpath%" %arch% && meson setup build --wrap-mode=default --buildtype=release -Dglib=enabled -Dfreetype=enabled -Dgdi=enabled -Ddirectwrite=enabled && meson test --print-errorlogs --suite=harfbuzz -Cbuild'
cache:
- c:\tools\vcpkg\installed\
notifications:
- provider: Email
to:
- harfbuzz-bots-chatter@googlegroups.com
on_build_success: false
on_build_failure: true
on_build_status_changed: true
# Do not build feature branch with open Pull Requests
skip_branch_with_pr: true
# disable automatic tests
test: off