Skip to content

wip

wip #32

Workflow file for this run

name: Windows
on:
push:
branches: [ master, test ]
pull_request:
branches: [ master, test ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
BUILD_TYPE: [Debug, Release]
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install cmake
uses: lukka/get-cmake@latest
- name: Prepare vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: 'f7423ee180c4b7f40d43402c2feb3859161ef625'
vcpkgTriplet: x64-windows
vcpkgJsonGlob: '**/vcpkg.json'
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_CXX_STANDARD=17 -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.BUILD_TYPE}} --rerun-failed --output-on-failure