-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
104 lines (96 loc) · 2.83 KB
/
azure-pipelines.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
#
# azure-pipelines.yml
#
# Copyright © 2022 Visualisierungsinstitut der Universität Stuttgart. Alle Rechte vorbehalten.
#
trigger:
- master
schedules:
- cron: '0 12 * * 0'
displayName: Weekly Sunday build
branches:
include:
- master
always: true
variables:
cmakeDefines: >-
-DCMAKE_INSTALL_PREFIX=$(Build.ArtifactStagingDirectory)\$(platform)\$(configuration)
-DBUILD_TESTING=OFF
-DSPDLOG_BUILD_EXAMPLES=OFF
-DTRROJAN_DEBUG_OVERLAY=OFF
-DTRROJAN_WITH_DSTORAGE=OFF
cmakeWindowsGenerator: 'Visual Studio 16 2019'
cmakeUnixGenerator: 'Unix Makefiles'
jobs:
- job: Windows
strategy:
matrix:
'Win32 Debug':
platform: Win32
configuration: Debug
generator: $(cmakeWindowsGenerator)
'Win32 Release':
platform: Win32
configuration: Release
generator: $(cmakeWindowsGenerator)
'Win64 Debug':
platform: x64
configuration: Debug
generator: $(cmakeWindowsGenerator)
'Win64 Release':
platform: x64
configuration: Release
generator: $(cmakeWindowsGenerator)
pool:
name: 'default'
demands:
- cmake
- VisualStudio_16.0
steps:
- task: CMake@1
inputs:
workingDirectory: $(Build.SourcesDirectory)
cmakeArgs: '.. -G"$(generator)" -A"$(platform)" -S"$(Build.SourcesDirectory)" -B"$(Build.SourcesDirectory)\_build\$(platform)" $(cmakeDefines)'
- task: MSBuild@1
inputs:
solution: '$(Build.SourcesDirectory)\_build\$(platform)\ALL_BUILD.vcxproj'
maximumCpuCount: true
configuration: $(configuration)
platform: $(platform)
- job: CentOS8
strategy:
matrix:
'GCC Debug':
configuration: Debug
ccompiler: gcc
cxxcompiler: g++
generator: $(cmakeUnixGenerator)
'GCC Release':
configuration: Release
ccompiler: gcc
cxxcompiler: g++
generator: $(cmakeUnixGenerator)
'Clang Debug':
configuration: Debug
ccompiler: clang
cxxcompiler: clang
generator: $(cmakeUnixGenerator)
'Clang Release':
configuration: Release
ccompiler: clang
cxxcompiler: clang
generator: $(cmakeUnixGenerator)
pool:
name: 'default'
demands:
- cmake
- linuxdistribution -equals centos
- linuxrelease -equals 8
steps:
- task: CMake@1
inputs:
workingDirectory: $(Build.SourcesDirectory)
cmakeArgs: '.. -G"$(generator)" -S"$(Build.SourcesDirectory)" -B"$(Build.SourcesDirectory)/_build/$(configuration)" -DCMAKE_BUILD_TYPE=$(configuration) $(cmakeDefines)'
- task: CMake@1
inputs:
cmakeArgs: '--build $(Build.SourcesDirectory)/_build/$(configuration) --parallel $(NUMBER_OF_PROCESSORS)'