-
Notifications
You must be signed in to change notification settings - Fork 0
109 lines (89 loc) · 3.04 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: windows
on: [push, pull_request]
jobs:
Build:
name: ${{matrix.name}} (${{matrix.config}})
runs-on: ${{matrix.os}}
env:
CMAKE_GENERATOR: Ninja
strategy:
fail-fast: false
matrix:
name: [
windows-2019-msvc2019,
windows-2019-msvc2019-win32,
# windows-2019-msvc2019-arm64,
# windows-2019-msvc2019-clang,
windows-2022-msvc2022,
windows-2022-msvc2022-win32
# windows-2022-msvc2022-arm64,
# windows-2022-msvc2022-clang
]
config: [Debug, Release]
include:
- name: windows-2019-msvc2019
os: windows-2019
compiler: cl
architecture: x64
- name: windows-2019-msvc2019-win32
os: windows-2019
compiler: cl
architecture: x86
# - name: windows-2019-msvc2019-arm64
# os: windows-2019
# compiler: cl
# architecture: x64_arm64
# - name: windows-2019-msvc2019-clang
# os: windows-2019
# compiler: clang-cl
# architecture: x64
- name: windows-2022-msvc2022
os: windows-2022
compiler: cl
architecture: x64
- name: windows-2022-msvc2022-win32
os: windows-2022
compiler: cl
architecture: x86
# - name: windows-2022-msvc2022-arm64
# os: windows-2022
# compiler: cl
# architecture: x64_arm64
# - name: windows-2022-msvc2022-clang
# os: windows-2022
# compiler: clang-cl
# architecture: x64
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{matrix.architecture}}
- name: Cache Dependencies
id: cache-choco
uses: actions/cache@v4
env:
cache-name: cache-choco-packages
with:
path: C:/Users/runneradmin/AppData/Local/Temp/chocolatey
key: ${{env.cache-name}}
- name: Dependencies
run: |
choco install ninja -y
choco install doxygen.install graphviz -y
echo "CC=${{matrix.compiler}}" >> $env:GITHUB_ENV
echo "CXX=${{matrix.compiler}}" >> $env:GITHUB_ENV
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: cmake $env:GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE:STRING=${{matrix.config}}
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config ${{matrix.config}}
- name: Test
if: ${{ matrix.architecture != 'x64_arm64' && matrix.name != 'windows-2022-msvc2022' }}
working-directory: ${{runner.workspace}}/build
run: ctest --output-on-failure -C ${{matrix.config}}
- name: Documentation
working-directory: ${{runner.workspace}}/build
run: cmake --build . --target documentation