-
Notifications
You must be signed in to change notification settings - Fork 3
278 lines (271 loc) · 11.7 KB
/
build-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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
name: Build Windows Server 2019
on:
push:
pull_request:
branches:
- main
jobs:
build-windows:
runs-on: windows-2019
strategy:
matrix:
build_configuration:
########################################
- name: "default"
########################################
ECAL_CORE_BUILD_SAMPLES: "ON"
ECAL_CORE_BUILD_SAMPLES_PROTOBUF: "OFF"
ECAL_CORE_BUILD_TESTS: "ON"
ECAL_CORE_BUILD_TESTS_PROTOBUF: "OFF"
ECAL_CORE_CONFIG_INIFILE: "ON"
ECAL_CORE_COMMAND_LINE: "ON"
ECAL_CORE_REGISTRATION: "ON"
ECAL_CORE_REGISTRATION_SHM: "ON"
ECAL_CORE_MONITORING: "OFF"
ECAL_CORE_PUBLISHER: "ON"
ECAL_CORE_SUBSCRIBER: "ON"
ECAL_CORE_SERVICE: "ON"
ECAL_CORE_TIMEPLUGIN: "ON"
ECAL_CORE_TRANSPORT_UDP: "ON"
ECAL_CORE_TRANSPORT_TCP: "ON"
ECAL_CORE_TRANSPORT_SHM: "ON"
ECAL_CORE_NPCAP_SUPPORT: "OFF"
BUILD_SHARED_LIBS: "OFF"
CMAKE_BUILD_TYPE: "Release"
########################################
- name: "full"
########################################
ECAL_CORE_BUILD_SAMPLES: "ON"
ECAL_CORE_BUILD_SAMPLES_PROTOBUF: "ON"
ECAL_CORE_BUILD_TESTS: "ON"
ECAL_CORE_BUILD_TESTS_PROTOBUF: "ON"
ECAL_CORE_CONFIG_INIFILE: "ON"
ECAL_CORE_COMMAND_LINE: "ON"
ECAL_CORE_REGISTRATION: "ON"
ECAL_CORE_REGISTRATION_SHM: "ON"
ECAL_CORE_MONITORING: "ON"
ECAL_CORE_PUBLISHER: "ON"
ECAL_CORE_SUBSCRIBER: "ON"
ECAL_CORE_SERVICE: "ON"
ECAL_CORE_TIMEPLUGIN: "ON"
ECAL_CORE_TRANSPORT_UDP: "ON"
ECAL_CORE_TRANSPORT_TCP: "ON"
ECAL_CORE_TRANSPORT_SHM: "ON"
ECAL_CORE_NPCAP_SUPPORT: "ON"
BUILD_SHARED_LIBS: "OFF"
CMAKE_BUILD_TYPE: "Release"
########################################
- name: "pubsub"
########################################
ECAL_CORE_BUILD_SAMPLES: "ON"
ECAL_CORE_BUILD_SAMPLES_PROTOBUF: "OFF"
ECAL_CORE_BUILD_TESTS: "ON"
ECAL_CORE_BUILD_TESTS_PROTOBUF: "OFF"
ECAL_CORE_CONFIG_INIFILE: "OFF"
ECAL_CORE_COMMAND_LINE: "OFF"
ECAL_CORE_REGISTRATION: "ON"
ECAL_CORE_REGISTRATION_SHM: "ON"
ECAL_CORE_MONITORING: "OFF"
ECAL_CORE_PUBLISHER: "ON"
ECAL_CORE_SUBSCRIBER: "ON"
ECAL_CORE_SERVICE: "OFF"
ECAL_CORE_TIMEPLUGIN: "OFF"
ECAL_CORE_TRANSPORT_UDP: "ON"
ECAL_CORE_TRANSPORT_TCP: "ON"
ECAL_CORE_TRANSPORT_SHM: "ON"
ECAL_CORE_NPCAP_SUPPORT: "OFF"
BUILD_SHARED_LIBS: "OFF"
CMAKE_BUILD_TYPE: "Release"
########################################
- name: "pubsub_proto"
########################################
ECAL_CORE_BUILD_SAMPLES: "ON"
ECAL_CORE_BUILD_SAMPLES_PROTOBUF: "ON"
ECAL_CORE_BUILD_TESTS: "ON"
ECAL_CORE_BUILD_TESTS_PROTOBUF: "ON"
ECAL_CORE_CONFIG_INIFILE: "OFF"
ECAL_CORE_COMMAND_LINE: "OFF"
ECAL_CORE_REGISTRATION: "ON"
ECAL_CORE_REGISTRATION_SHM: "ON"
ECAL_CORE_MONITORING: "OFF"
ECAL_CORE_PUBLISHER: "ON"
ECAL_CORE_SUBSCRIBER: "ON"
ECAL_CORE_SERVICE: "OFF"
ECAL_CORE_TIMEPLUGIN: "OFF"
ECAL_CORE_TRANSPORT_UDP: "ON"
ECAL_CORE_TRANSPORT_TCP: "ON"
ECAL_CORE_TRANSPORT_SHM: "ON"
ECAL_CORE_NPCAP_SUPPORT: "OFF"
BUILD_SHARED_LIBS: "OFF"
CMAKE_BUILD_TYPE: "Release"
########################################
- name: "pubsub_udp_only"
########################################
ECAL_CORE_BUILD_SAMPLES: "ON"
ECAL_CORE_BUILD_SAMPLES_PROTOBUF: "OFF"
ECAL_CORE_BUILD_TESTS: "ON"
ECAL_CORE_BUILD_TESTS_PROTOBUF: "OFF"
ECAL_CORE_CONFIG_INIFILE: "OFF"
ECAL_CORE_COMMAND_LINE: "OFF"
ECAL_CORE_REGISTRATION: "OFF"
ECAL_CORE_REGISTRATION_SHM: "OFF"
ECAL_CORE_MONITORING: "OFF"
ECAL_CORE_PUBLISHER: "ON"
ECAL_CORE_SUBSCRIBER: "ON"
ECAL_CORE_SERVICE: "OFF"
ECAL_CORE_TIMEPLUGIN: "OFF"
ECAL_CORE_TRANSPORT_UDP: "ON"
ECAL_CORE_TRANSPORT_TCP: "OFF"
ECAL_CORE_TRANSPORT_SHM: "OFF"
ECAL_CORE_NPCAP_SUPPORT: "OFF"
BUILD_SHARED_LIBS: "OFF"
CMAKE_BUILD_TYPE: "Release"
########################################
- name: "pubsub_tcp_only"
########################################
ECAL_CORE_BUILD_SAMPLES: "ON"
ECAL_CORE_BUILD_SAMPLES_PROTOBUF: "OFF"
ECAL_CORE_BUILD_TESTS: "ON"
ECAL_CORE_BUILD_TESTS_PROTOBUF: "OFF"
ECAL_CORE_CONFIG_INIFILE: "OFF"
ECAL_CORE_COMMAND_LINE: "OFF"
ECAL_CORE_REGISTRATION: "ON"
ECAL_CORE_REGISTRATION_SHM: "OFF"
ECAL_CORE_MONITORING: "OFF"
ECAL_CORE_PUBLISHER: "ON"
ECAL_CORE_SUBSCRIBER: "ON"
ECAL_CORE_SERVICE: "OFF"
ECAL_CORE_TIMEPLUGIN: "OFF"
ECAL_CORE_TRANSPORT_UDP: "OFF"
ECAL_CORE_TRANSPORT_TCP: "ON"
ECAL_CORE_TRANSPORT_SHM: "OFF"
ECAL_CORE_NPCAP_SUPPORT: "OFF"
BUILD_SHARED_LIBS: "OFF"
CMAKE_BUILD_TYPE: "Release"
########################################
- name: "pubsub_shm_only"
########################################
ECAL_CORE_BUILD_SAMPLES: "ON"
ECAL_CORE_BUILD_SAMPLES_PROTOBUF: "OFF"
ECAL_CORE_BUILD_TESTS: "ON"
ECAL_CORE_BUILD_TESTS_PROTOBUF: "OFF"
ECAL_CORE_CONFIG_INIFILE: "OFF"
ECAL_CORE_COMMAND_LINE: "OFF"
ECAL_CORE_REGISTRATION: "ON"
ECAL_CORE_REGISTRATION_SHM: "OFF"
ECAL_CORE_MONITORING: "OFF"
ECAL_CORE_PUBLISHER: "ON"
ECAL_CORE_SUBSCRIBER: "ON"
ECAL_CORE_SERVICE: "OFF"
ECAL_CORE_TIMEPLUGIN: "OFF"
ECAL_CORE_TRANSPORT_UDP: "OFF"
ECAL_CORE_TRANSPORT_TCP: "OFF"
ECAL_CORE_TRANSPORT_SHM: "ON"
ECAL_CORE_NPCAP_SUPPORT: "OFF"
BUILD_SHARED_LIBS: "OFF"
CMAKE_BUILD_TYPE: "Release"
########################################
- name: "client_server"
########################################
ECAL_CORE_BUILD_SAMPLES: "ON"
ECAL_CORE_BUILD_SAMPLES_PROTOBUF: "OFF"
ECAL_CORE_BUILD_TESTS: "ON"
ECAL_CORE_BUILD_TESTS_PROTOBUF: "OFF"
ECAL_CORE_CONFIG_INIFILE: "OFF"
ECAL_CORE_COMMAND_LINE: "OFF"
ECAL_CORE_REGISTRATION: "ON"
ECAL_CORE_REGISTRATION_SHM: "ON"
ECAL_CORE_MONITORING: "OFF"
ECAL_CORE_PUBLISHER: "OFF"
ECAL_CORE_SUBSCRIBER: "OFF"
ECAL_CORE_SERVICE: "ON"
ECAL_CORE_TIMEPLUGIN: "OFF"
ECAL_CORE_TRANSPORT_UDP: "OFF"
ECAL_CORE_TRANSPORT_TCP: "OFF"
ECAL_CORE_TRANSPORT_SHM: "OFF"
ECAL_CORE_NPCAP_SUPPORT: "OFF"
BUILD_SHARED_LIBS: "OFF"
CMAKE_BUILD_TYPE: "Release"
########################################
- name: "client_server_proto"
########################################
ECAL_CORE_BUILD_SAMPLES: "ON"
ECAL_CORE_BUILD_SAMPLES_PROTOBUF: "ON"
ECAL_CORE_BUILD_TESTS: "ON"
ECAL_CORE_BUILD_TESTS_PROTOBUF: "ON"
ECAL_CORE_CONFIG_INIFILE: "OFF"
ECAL_CORE_COMMAND_LINE: "OFF"
ECAL_CORE_REGISTRATION: "ON"
ECAL_CORE_REGISTRATION_SHM: "ON"
ECAL_CORE_MONITORING: "OFF"
ECAL_CORE_PUBLISHER: "OFF"
ECAL_CORE_SUBSCRIBER: "OFF"
ECAL_CORE_SERVICE: "ON"
ECAL_CORE_TIMEPLUGIN: "OFF"
ECAL_CORE_TRANSPORT_UDP: "OFF"
ECAL_CORE_TRANSPORT_TCP: "OFF"
ECAL_CORE_TRANSPORT_SHM: "OFF"
ECAL_CORE_NPCAP_SUPPORT: "OFF"
BUILD_SHARED_LIBS: "OFF"
CMAKE_BUILD_TYPE: "Release"
########################################
- name: "monitoring_only"
########################################
ECAL_CORE_BUILD_SAMPLES: "ON"
ECAL_CORE_BUILD_SAMPLES_PROTOBUF: "ON"
ECAL_CORE_BUILD_TESTS: "ON"
ECAL_CORE_BUILD_TESTS_PROTOBUF: "ON"
ECAL_CORE_CONFIG_INIFILE: "OFF"
ECAL_CORE_COMMAND_LINE: "OFF"
ECAL_CORE_REGISTRATION: "ON"
ECAL_CORE_REGISTRATION_SHM: "OFF"
ECAL_CORE_MONITORING: "ON"
ECAL_CORE_PUBLISHER: "OFF"
ECAL_CORE_SUBSCRIBER: "OFF"
ECAL_CORE_SERVICE: "OFF"
ECAL_CORE_TIMEPLUGIN: "OFF"
ECAL_CORE_TRANSPORT_UDP: "OFF"
ECAL_CORE_TRANSPORT_TCP: "OFF"
ECAL_CORE_TRANSPORT_SHM: "OFF"
ECAL_CORE_NPCAP_SUPPORT: "OFF"
BUILD_SHARED_LIBS: "OFF"
CMAKE_BUILD_TYPE: "Release"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
fetch-depth: 0
- name: CMake
run: |
mkdir "${{ runner.workspace }}\_build\"
cd "${{ runner.workspace }}/_build"
cmake %GITHUB_WORKSPACE% -A x64 ^
-DECAL_CORE_BUILD_SAMPLES=${{ matrix.build_configuration.ECAL_CORE_BUILD_SAMPLES }} ^
-DECAL_CORE_BUILD_SAMPLES_PROTOBUF=${{ matrix.build_configuration.ECAL_CORE_BUILD_SAMPLES_PROTOBUF }} ^
-DECAL_CORE_BUILD_TESTS=${{ matrix.build_configuration.ECAL_CORE_BUILD_TESTS }} ^
-DECAL_CORE_BUILD_TESTS_PROTOBUF=${{ matrix.build_configuration.ECAL_CORE_BUILD_TESTS_PROTOBUF }} ^
-DECAL_CORE_CONFIG_INIFILE=${{ matrix.build_configuration.ECAL_CORE_CONFIG_INIFILE }} ^
-DECAL_CORE_COMMAND_LINE=${{ matrix.build_configuration.ECAL_CORE_COMMAND_LINE }} ^
-DECAL_CORE_REGISTRATION=${{ matrix.build_configuration.ECAL_CORE_REGISTRATION }} ^
-DECAL_CORE_REGISTRATION_SHM=${{ matrix.build_configuration.ECAL_CORE_REGISTRATION_SHM }} ^
-DECAL_CORE_MONITORING=${{ matrix.build_configuration.ECAL_CORE_MONITORING }} ^
-DECAL_CORE_PUBLISHER=${{ matrix.build_configuration.ECAL_CORE_PUBLISHER }} ^
-DECAL_CORE_SUBSCRIBER=${{ matrix.build_configuration.ECAL_CORE_SUBSCRIBER }} ^
-DECAL_CORE_SERVICE=${{ matrix.build_configuration.ECAL_CORE_SERVICE }} ^
-DECAL_CORE_TIMEPLUGIN=${{ matrix.build_configuration.ECAL_CORE_TIMEPLUGIN }} ^
-DECAL_CORE_TRANSPORT_UDP=${{ matrix.build_configuration.ECAL_CORE_TRANSPORT_UDP }} ^
-DECAL_CORE_TRANSPORT_TCP=${{ matrix.build_configuration.ECAL_CORE_TRANSPORT_TCP }} ^
-DECAL_CORE_TRANSPORT_SHM=${{ matrix.build_configuration.ECAL_CORE_TRANSPORT_SHM }} ^
-DECAL_CORE_NPCAP_SUPPORT=${{ matrix.build_configuration.ECAL_CORE_NPCAP_SUPPORT }} ^
-DBUILD_SHARED_LIBS=${{ matrix.build_configuration.BUILD_SHARED_LIBS }} ^
-DCMAKE_BUILD_TYPE=${{ matrix.build_configuration.CMAKE_BUILD_TYPE }}
mkdir "%ALLUSERSPROFILE%\eCAL"
copy "%GITHUB_WORKSPACE%\src\core\cfg\ecal.ini" "%ALLUSERSPROFILE%\eCAL"
shell: cmd
- name: Build Release
run: cmake --build . --config Release
working-directory: ${{ runner.workspace }}/_build
- name: Run Tests
run: ctest -C Release -V
working-directory: ${{ runner.workspace }}/_build