-
Notifications
You must be signed in to change notification settings - Fork 2.1k
42 lines (40 loc) · 1.29 KB
/
amd64_windows_cmake_cpp.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
42
name: amd64 Windows CMake C++
on: [push, pull_request]
jobs:
# Building using the github runner environement directly.
cmake:
# ref: https://github.com/actions/runner-images
strategy:
matrix:
runner: [
windows-2022,
#windows-2019,
]
build: [
["Visual Studio 17 2022", "v143,version=14.37"],
["Visual Studio 17 2022", "v143,version=14.36"],
["Visual Studio 17 2022", "v143,version=14.35"],
]
fail-fast: false # Don't cancel all jobs if one fails.
runs-on: ${{ matrix.runner }}
#runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Check cmake
run: |
cmake --version
cmake -G || true
- name: Configure
run: >
cmake -S. -Bbuild
-G "${{ matrix.build[0] }}" -T ${{ matrix.build[1] }}
-DCMAKE_BUILD_TYPE=Release
-DBUILD_DEPS=ON
- name: Build
run: cmake --build build --config Release --target ALL_BUILD -v -- /verbosity:d
- name: Test
run: |
cmake --build build --config Release --target RUN_TESTS -v -- /verbosity:d
cd build && ctest -C Release --rerun-failed --output-on-failure -V
- name: Install
run: cmake --build build --config Release --target INSTALL -v -- /verbosity:d