Skip to content

v1.2.5

v1.2.5 #1106

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