-
-
Notifications
You must be signed in to change notification settings - Fork 25
48 lines (39 loc) · 1.38 KB
/
cmake-windows-amd64.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
43
44
45
46
47
48
name: CMake Build - Windows AMD64
on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "*" ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
build_type: [Release]
# Windows only supports MSVC (cl)
c_compiler: [cl]
cpp_compiler: [cl]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
- name: Build C++ Runtime
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} -j4
- name: Prepare C++ Test Data
run: |
cp -r ${{ github.workspace }}/test_data ${{ steps.strings.outputs.build-output-dir }}/test/unit/test_data
- name: Run C++ Runtime Tests
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: ctest --build-config ${{ matrix.build_type }} --verbose