-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (39 loc) · 1.34 KB
/
AppFwkUnitTestWin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build with Unit Tests Windows
on: [push, pull_request]
jobs:
caffa-x64:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
include:
- os: windows-latest
triplet: x64-windows
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install boost
uses: MarkusJx/install-boost@v2.4.4
id: install-boost
with:
boost_version: 1.81.0
platform_version: 2022
toolset: msvc
arch: x86
- name: Build Caffa with Unit Tests
uses: lukka/run-cmake@v3
with:
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
cmakeAppendedArgs: '-DCAFFA_REST_INTERFACE=ON -DCAFFA_BUILD_EXAMPLES=ON -DCAFFA_BUILD_UNIT_TESTS=ON -DBOOST_ROOT=${{ steps.install-boost.outputs.BOOST_ROOT }}'
buildDirectory: ${{ github.workspace }}/cmakebuild
buildWithCMakeArgs: '--config Release'
- name: Run Unit Tests Windows
shell: bash
run: |
cmakebuild/bin/Release/caffaCore_UnitTests.exe
cmakebuild/bin/Release/caffaIoCore_UnitTests.exe
cmakebuild/bin/Release/caffaProjectDataModel_UnitTests.exe