-
-
Notifications
You must be signed in to change notification settings - Fork 24
41 lines (32 loc) · 1004 Bytes
/
msvc-cmake.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
41
name: Windows Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-2022
env:
CMAKE_PREFIX_PATH: ${{ github.workspace }}\.local
steps:
- uses: actions/checkout@v2
- name: Install Catch2
run: |
git clone --branch v2.x https://github.com/catchorg/Catch2
cmake -S Catch2 -B Catch2/build -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX="$env:CMAKE_PREFIX_PATH"
cmake --build Catch2/build --target install
- name: Configure CMake
run: cmake -S . -B build
- name: Build
run: cmake --build build --config Release
- name: Test
run: |
cd build
ctest -C Release
- name: Install
run: cmake --install build --config Release --prefix "$env:CMAKE_PREFIX_PATH"
- name: Configure CMake for examples
run: cmake -S examples -B examples\build
- name: Build examples
run: cmake --build examples\build --config Release