forked from PointCloudLibrary/pcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yaml
167 lines (161 loc) · 4.93 KB
/
azure-pipelines.yaml
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
trigger:
paths:
exclude:
- doc
- README.md
- CHANGES.md
- CONTRIBUTING.md
pr:
paths:
exclude:
- doc
- README.md
- CHANGES.md
- CONTRIBUTING.md
resources:
containers:
- container: winx86
image: pointcloudlibrary/env:windows2022-x86
- container: winx64
image: pointcloudlibrary/env:windows2022-x64
- container: env2004
image: pointcloudlibrary/env:20.04
- container: env2204
image: pointcloudlibrary/env:22.04
- container: env2404
image: pointcloudlibrary/env:24.04
stages:
- stage: formatting
displayName: Formatting
jobs:
- template: formatting.yaml
- stage: build_gcc
displayName: Build GCC
dependsOn: formatting
jobs:
- job: ubuntu
displayName: Ubuntu
pool:
vmImage: 'ubuntu-22.04'
strategy:
matrix:
20.04 GCC: # oldest LTS
CONTAINER: env2004
CC: gcc
CXX: g++
BUILD_GPU: ON
CMAKE_ARGS: '-DPCL_WARNINGS_ARE_ERRORS=ON'
24.04 GCC: # latest Ubuntu
CONTAINER: env2404
CC: gcc
CXX: g++
BUILD_GPU: ON
CMAKE_ARGS: '-DCMAKE_CXX_STANDARD=17 -DCMAKE_CUDA_STANDARD=17'
container: $[ variables['CONTAINER'] ]
timeoutInMinutes: 0
variables:
BUILD_DIR: '$(Agent.BuildDirectory)/build'
CMAKE_CXX_FLAGS: '-Wall -Wextra -Wnoexcept-type'
DISPLAY: :99.0 # Checked for in CMake
steps:
- template: build/ubuntu.yaml
- stage: build_clang
displayName: Build Clang
dependsOn: formatting
jobs:
- job: osx
displayName: macOS
pool:
vmImage: '$(VMIMAGE)'
strategy:
matrix:
Ventura 13:
VMIMAGE: 'macOS-13'
OSX_VERSION: '13'
Sonoma 14:
VMIMAGE: 'macOS-14'
OSX_VERSION: '14'
timeoutInMinutes: 0
variables:
BUILD_DIR: '$(Agent.WorkFolder)/build'
GOOGLE_TEST_DIR: '$(Agent.WorkFolder)/googletest'
CMAKE_CXX_FLAGS: '-Wall -Wextra -Wabi -Werror -Wno-error=deprecated-declarations'
steps:
- template: build/macos.yaml
- job: ubuntu
displayName: Ubuntu
# Placement of Ubuntu Clang job after macOS ensures an extra parallel job doesn't need to be created.
# Total time per run remains same since macOS is quicker so it finishes earlier, and remaining time is used by this job
# Therefore, number of parallel jobs and total run time of entire pipeline remains unchanged even after addition of this job
# The version of Ubuntu is chosen to cover more versions than covered by GCC based CI
dependsOn: osx
condition: succeededOrFailed()
pool:
vmImage: 'ubuntu-22.04'
strategy:
matrix:
22.04 Clang:
CONTAINER: env2204
CC: clang
CXX: clang++
BUILD_GPU: OFF # There are currently incompatibilities between GCC 11.2 and CUDA 11.5 (Ubuntu 22.04)
CMAKE_ARGS: ''
container: $[ variables['CONTAINER'] ]
timeoutInMinutes: 0
variables:
BUILD_DIR: '$(Agent.BuildDirectory)/build'
CMAKE_CXX_FLAGS: '-Wall -Wextra'
DISPLAY: :99.0 # Checked for in CMake
steps:
- template: build/ubuntu.yaml
- job: ubuntu_indices
displayName: Ubuntu Indices
# Test 64 bit & unsigned indices
dependsOn: osx
condition: succeededOrFailed()
pool:
vmImage: 'ubuntu-22.04'
strategy:
matrix:
22.04 Clang:
CONTAINER: env2204
CC: clang
CXX: clang++
INDEX_SIGNED: OFF
INDEX_SIZE: 64
CMAKE_ARGS: ''
container: $[ variables['CONTAINER'] ]
timeoutInMinutes: 0
variables:
BUILD_DIR: '$(Agent.BuildDirectory)/build'
CMAKE_CXX_FLAGS: '-Wall -Wextra'
steps:
- template: build/ubuntu_indices.yaml
- stage: build_msvc
displayName: Build MSVC
dependsOn: formatting
jobs:
- job: Windows
displayName: Windows Build
pool:
vmImage: 'windows-2022'
strategy:
matrix:
x86:
CONTAINER: winx86
PLATFORM: 'x86'
ARCHITECTURE: 'x86'
GENERATOR: '"Visual Studio 16 2019" -A Win32'
x64:
CONTAINER: winx64
PLATFORM: 'x64'
ARCHITECTURE: 'x86_amd64'
GENERATOR: '"Visual Studio 16 2019" -A x64'
container: $[ variables['CONTAINER'] ]
timeoutInMinutes: 0
variables:
BUILD_DIR: 'c:\build'
CONFIGURATION: 'Release'
VCPKG_ROOT: 'c:\vcpkg'
steps:
- template: build/windows.yaml