forked from UniStuttgart-VISUS/megamol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
132 lines (120 loc) · 3.96 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
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
trigger:
- master
pr:
- master
variables:
defaultConfig: >-
-DMEGAMOL_WARNING_LEVEL="Off"
-DMEGAMOL_PLUGIN_ASTRO=ON
-DMEGAMOL_PLUGIN_ASTRO_GL=ON
-DMEGAMOL_PLUGIN_IMAGE_GL=ON
-DMEGAMOL_PLUGIN_MEGAMOL101_GL=ON
-DMEGAMOL_PLUGIN_MMADIOS=ON
-DMEGAMOL_PLUGIN_MMVTKM=ON
-DMEGAMOL_PLUGIN_MMVTKM_GL=ON
-DMEGAMOL_PLUGIN_PROTEIN=ON
-DMEGAMOL_PLUGIN_PROTEIN_GL=ON
-DMEGAMOL_PLUGIN_REMOTE=OFF
nonGlConfig: >-
-DMEGAMOL_WARNING_LEVEL="Off"
-DMEGAMOL_USE_OPENGL=OFF
jobs:
- job: Windows
variables:
VCPKG_DEFAULT_BINARY_CACHE: '$(Agent.BuildDirectory)\vcpkg_cache\archives'
X_VCPKG_REGISTRIES_CACHE: '$(Agent.BuildDirectory)\vcpkg_cache\registries'
strategy:
matrix:
'VS2019 Release':
configuration: Release
generator: 'Visual Studio 16 2019'
cmakeExtraArgs: '$(defaultConfig)'
'VS2019 Debug':
configuration: Debug
generator: 'Visual Studio 16 2019'
cmakeExtraArgs: '$(defaultConfig)'
'VS2019 Release (nonGL)':
configuration: Release
generator: 'Visual Studio 16 2019'
cmakeExtraArgs: '$(nonGlConfig)'
pool:
name: 'hardware'
demands:
- Agent.OS -equals Windows_NT
- cmake
- VisualStudio_16.0
steps:
- template: .ci/check-pr-labels-step-pwsh.yml
- powershell: |
New-Item -ItemType "directory" -Path "$Env:VCPKG_DEFAULT_BINARY_CACHE" -Force
New-Item -ItemType "directory" -Path "$Env:X_VCPKG_REGISTRIES_CACHE" -Force
displayName: 'Setup vcpkg cache directories'
- task: CMake@1
displayName: 'CMake Configure'
inputs:
cmakeArgs: '.. -G"$(generator)" -A"x64" $(cmakeExtraArgs)'
- task: CMake@1
displayName: 'CMake Build'
inputs:
cmakeArgs: '--build . --config $(configuration)'
- job: Linux
variables:
VCPKG_DEFAULT_BINARY_CACHE: '$(Agent.BuildDirectory)/vcpkg_cache/archives'
X_VCPKG_REGISTRIES_CACHE: '$(Agent.BuildDirectory)/vcpkg_cache/registries'
strategy:
matrix:
## Temporarily disabled until more CI machines are available!
#'GCC11 / Make / Release':
# cCompiler: gcc-11
# cxxCompiler: g++-11
# configuration: Release
# generator: 'Unix Makefiles'
# cmakeExtraArgs: '$(defaultConfig)'
'GCC11 / Make / Debug':
cCompiler: gcc-11
cxxCompiler: g++-11
configuration: Debug
generator: 'Unix Makefiles'
cmakeExtraArgs: '$(defaultConfig)'
## Temporarily disabled until more CI machines are available!
#'GCC11 / Ninja / Release':
# cCompiler: gcc-11
# cxxCompiler: g++-11
# configuration: Release
# generator: 'Ninja'
# cmakeExtraArgs: '$(defaultConfig)'
## Temporarily changed to Ninja instead of Make until more CI machines are available!
'Clang14 / Ninja / Release':
cCompiler: clang-14
cxxCompiler: clang++-14
configuration: Release
generator: 'Ninja'
cmakeExtraArgs: '$(defaultConfig)'
'GCC11 / Make / Release (nonGL)':
cCompiler: gcc-11
cxxCompiler: g++-11
configuration: Release
generator: 'Unix Makefiles'
cmakeExtraArgs: '$(nonGlConfig)'
pool:
name: 'hardware'
demands:
- Agent.OS -equals Linux
- docker
container: ghcr.io/unistuttgart-visus/megamol_ci_ubuntu:master
steps:
- template: .ci/check-pr-labels-step-bash.yml
- bash: |
mkdir -p $VCPKG_DEFAULT_BINARY_CACHE
mkdir -p $X_VCPKG_REGISTRIES_CACHE
displayName: 'Setup vcpkg cache directories'
- bash: echo "##vso[task.setvariable variable=numberOfCpuCores]$(nproc)"
displayName: 'Bash get number of CPU cores'
- task: CMake@1
displayName: 'CMake Configure'
inputs:
cmakeArgs: '.. -G"$(generator)" -DCMAKE_C_COMPILER=$(cCompiler) -DCMAKE_CXX_COMPILER=$(cxxCompiler) -DCMAKE_BUILD_TYPE=$(configuration) $(cmakeExtraArgs)'
- task: CMake@1
displayName: 'CMake Build'
inputs:
cmakeArgs: '--build . --parallel $(numberOfCpuCores)'