infra: Add window build test in CI

Add build test for normal build
This commit is contained in:
JunsuChoi 2021-09-28 11:07:58 +09:00 committed by JunsuChoi
parent 78363c3aad
commit 5124a9ad6b
3 changed files with 35 additions and 1 deletions

30
.github/workflows/build_win.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Build(Window)
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
with:
submodules: true
- name: Install Packages
run: |
pip install meson==0.58.0 ninja
- name: Build
run: |
meson --backend=ninja build --buildtype=release
where link
ninja -C build
ninja -C build install
- uses: actions/upload-artifact@v2
with:
name: result
path: build/src\thorvg*

View file

@ -1,6 +1,6 @@
project('thorvg',
'cpp',
default_options : ['buildtype=debugoptimized', 'b_sanitize=none', 'werror=false', 'optimization=s', 'cpp_std=gnu++14'],
default_options : ['buildtype=debugoptimized', 'b_sanitize=none', 'werror=false', 'optimization=s', 'cpp_std=c++14'],
version : '0.5.99',
license : 'MIT')

View file

@ -23,6 +23,10 @@
#include "tvgTaskScheduler.h"
#include "tvgLoader.h"
#ifdef _WIN32
#include <cstring>
#endif
#ifdef THORVG_SW_RASTER_SUPPORT
#include "tvgSwRenderer.h"
#endif