diff --git a/.github/workflows/msvc-ci.yml b/.github/workflows/msvc-ci.yml new file mode 100644 index 000000000..4fae289a0 --- /dev/null +++ b/.github/workflows/msvc-ci.yml @@ -0,0 +1,50 @@ +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 + 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 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