mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
infra: Add window build test in CI
Add build test for normal build
This commit is contained in:
parent
78363c3aad
commit
5124a9ad6b
3 changed files with 35 additions and 1 deletions
30
.github/workflows/build_win.yml
vendored
Normal file
30
.github/workflows/build_win.yml
vendored
Normal 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*
|
||||
|
|
@ -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')
|
||||
|
||||
|
|
|
@ -23,6 +23,10 @@
|
|||
#include "tvgTaskScheduler.h"
|
||||
#include "tvgLoader.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <cstring>
|
||||
#endif
|
||||
|
||||
#ifdef THORVG_SW_RASTER_SUPPORT
|
||||
#include "tvgSwRenderer.h"
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue