thorvg/.github/workflows/build_windows.yml
JunsuChoi 509181bf2a infra/window: Remove version fix of meson
Version 0.58 find missing libraries and causes an error.
(ex: libwebp 1.0).
There is no need to fix the current version, so always use the latest version.
2024-02-06 10:52:58 +09:00

74 lines
1.6 KiB
YAML

name: Windows
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Install Packages
run: |
pip install meson ninja
- name: Build
run: |
meson setup --backend=ninja build -Dlog=true -Dloaders="all" -Dsavers="all" -Dbindings="capi" -Dtools="all"
where link
ninja -C build install
- uses: actions/upload-artifact@v3
with:
name: result
path: build/src/thorvg*
static_loaders:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Install Packages
run: |
pip install meson ninja
- name: Build
run: |
meson setup --backend=ninja build -Dlog=true -Dloaders="all" -Dsavers="all" -Dbindings="capi" -Dtools="all" -Dstatic=true
where link
ninja -C build install
- uses: actions/upload-artifact@v3
with:
name: result
path: build/src/thorvg*
unit_test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Install Packages
run: |
pip install meson ninja
- name: Build
run: |
meson setup --backend=ninja build -Dloaders="all" -Dsavers="all" -Dbindings="capi" -Dtests=true --errorlogs
where link
ninja -C build install test
- uses: actions/upload-artifact@v3
with:
name: UnitTestReport
path: build/meson-logs/testlog.txt