-
Notifications
You must be signed in to change notification settings - Fork 11
69 lines (63 loc) · 2.24 KB
/
windows.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: "Windows"
# based on https://github.com/nlohmann/json/blob/develop/.github/workflows/windows.yml
on: [push, pull_request]
jobs:
msvc2019:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
- name: Configure
run: cmake -S . \
-B ${{runner.workspace}}/build \
--warn-uninitialized \
-D UREACT_PEDANTIC:BOOL=y \
-D UREACT_WERROR:BOOL=y \
-G "Visual Studio 16 2019"
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --parallel 10 --config Release
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -j 10 -C Release --output-on-failure
clang12:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
- name: Install Clang
run: curl -fsSL -o LLVM12.exe https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.0/LLVM-12.0.0-win64.exe ; 7z x LLVM12.exe -y -o"C:/Program Files/LLVM"
- name: Configure
run: cmake -S . \
-B ${{runner.workspace}}/build \
--warn-uninitialized \
-D CMAKE_C_COMPILER="C:/Program Files/LLVM/bin/clang.exe" \
-D CMAKE_CXX_COMPILER="C:/Program Files/LLVM/bin/clang++.exe" \
-D CMAKE_BUILD_TYPE=Release \
-D UREACT_PEDANTIC:BOOL=y \
-D UREACT_WERROR:BOOL=y \
-G"MinGW Makefiles"
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --parallel 10
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -j 10 -C Release --output-on-failure
clang-cl-10:
runs-on: windows-2019
strategy:
matrix:
arch: [Win32, x64]
steps:
- uses: actions/checkout@v1
- name: Configure
run: cmake -S . \
-B ${{runner.workspace}}/build \
--warn-uninitialized \
-G "Visual Studio 16 2019" \
-A ${{matrix.arch}} \
-T ClangCL
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config Release --parallel 10
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -j 10 -C Release --output-on-failure