From 3a46ae51273ce086aaec8ccf14420bbf5a36dffb Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Wed, 15 Jul 2020 12:46:34 +0430 Subject: [PATCH] Use GitHub Actions for msvc bots --- .github/workflows/msvc-ci.yml | 38 +++++++++++++++++++++++++++++++++++ appveyor.yml | 37 ---------------------------------- 2 files changed, 38 insertions(+), 37 deletions(-) create mode 100644 .github/workflows/msvc-ci.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/msvc-ci.yml b/.github/workflows/msvc-ci.yml new file mode 100644 index 000000000..5b3ad3d66 --- /dev/null +++ b/.github/workflows/msvc-ci.yml @@ -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 diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 0ebfadcfd..000000000 --- a/appveyor.yml +++ /dev/null @@ -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