-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
168 lines (160 loc) · 5.15 KB
/
azure-pipelines.yml
File metadata and controls
168 lines (160 loc) · 5.15 KB
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
# C/C++ with GCC
# Build your C/C++ project with GCC using make.
# Add steps that publish test results, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc
# copied from https://github.com/CLIUtils/CLI11
trigger:
- main
pr:
- main
variables:
units.header: OFF
units.std: 14
units.build_type: Debug
units.options: -DUNITS_ENABLE_TESTS=ON -DUNITS_ENABLE_ERROR_ON_WARNINGS=ON
CMAKE_BUILD_PARALLEL_LEVEL: 4
jobs:
- job: ClangTidy
variables:
CXX_FLAGS: '-Werror -Wcast-align -Wfloat-equal -Wimplicit-atomic-properties -Wmissing-declarations -Woverlength-strings -Wshadow -Wstrict-selector-match -Wundeclared-selector -Wunreachable-code -ferror-limit=0 -std=c++11'
units.options: -DUNITS_CLANG_TIDY=ON -DUNITS_CLANG_TIDY_OPTIONS="-fix"
units.std: 11
CMAKE_BUILD_PARALLEL_LEVEL: 1
pool:
vmImage: 'ubuntu-latest'
container: helics/buildenv:clang19-builder
steps:
- template: .ci/azure-build.yml
- script: git diff --exit-code --color
displayName: Check tidy
- job: Native_gtest
strategy:
matrix:
Linux14:
vmImage: 'ubuntu-latest'
units.options: -DUNITS_USE_EXTERNAL_GTEST=ON
Linux14shared:
vmImage: 'ubuntu-latest'
units.options: -DBUILD_SHARED_LIBS=ON -DUNITS_USE_EXTERNAL_GTEST=ON
pool:
vmImage: $(vmImage)
steps:
- script: |
sudo apt-get update -qq -y # It's good practice to update before installing
sudo apt-get install -qq -y libgtest-dev libgmock-dev
displayName: 'Install gtest' # Optional: Add a display name for the step
- template: .ci/azure-build.yml
- template: .ci/azure-test.yml
- job: Native
strategy:
matrix:
macOS17:
vmImage: 'macOS-latest'
units.std: 17
macOS11:
vmImage: 'macOS-latest'
units.std: 11
Windows17:
vmImage: 'windows-2022'
units.options: -DUNITS_BUILD_SHARED_LIBRARY=ON -DUNITS_BUILD_STATIC_LIBRARY=OFF
units.std: 17
Windows32bit:
vmImage: 'windows-2022'
units.options: -A "Win32" -DUNITS_BUILD_WEBSERVER=OFF
units.std: 14
Windows11:
vmImage: 'windows-2022'
units.std: 11
Windowslatest:
vmImage: 'windows-2025'
units.std: 23
units.options: -DCMAKE_CXX_FLAGS="/std:c++latest"
pool:
vmImage: $(vmImage)
steps:
- template: .ci/azure-build.yml
- template: .ci/azure-test.yml
- job: Docker
variables:
units.header: OFF
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
gcc7-11:
containerImage: gcc:7
units.std: 11
gcc7-14:
containerImage: gcc:7
units.std: 14
gcc7-17:
containerImage: gcc:7
units.std: 17
gcc8:
containerImage: gcc:8
units.std: 17
clang3.4:
containerImage: silkeh/clang:3.4
units.std: 11
units.options: -DUNITS_ENABLE_TESTS=OFF"
clang3.5:
containerImage: silkeh/clang:3.5
units.std: 11
gcc9:
containerImage: gcc:9
units.std: 17
units.options: -DCMAKE_CXX_FLAGS="-Wstrict-overflow=5"
gcc11-project_rename:
containerImage: gcc:11
units.std: 17
units.options: -DUNITS_CMAKE_PROJECT_NAME=LLNL-UNITS"
gcc12:
containerImage: gcc:12
units.std: 20
gcc13:
containerImage: gcc:13
units.std: 20
container: $[ variables['containerImage'] ]
steps:
- template: .ci/azure-cmake.yml
- template: .ci/azure-build.yml
- template: .ci/azure-test.yml
- job: Docker2
variables:
units.header: OFF
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
gcc4.8:
containerImage: helics/buildenv:gcc4-8-builder
units.std: 11
units.options:
gcc15:
containerImage: helics/buildenv:gcc15-builder
units.std: 23
units.options: -DCMAKE_CXX_FLAGS="-Warith-conversion -Wbidi-chars=any"
clang9_17:
containerImage: helics/buildenv:clang9-builder
units.std: 17
units.options: -DUSE_LIBCXX=ON
clang14_20:
containerImage: helics/buildenv:clang14-builder
units.std: 20
units.options: -DUSE_LIBCXX=ON -DCMAKE_CXX_FLAGS=-std=c++20
clang18_23:
containerImage: helics/buildenv:clang18-builder
units.std: 23
units.options: -DUSE_LIBCXX=ON -DCMAKE_CXX_FLAGS=-std=c++23
clang21_23:
containerImage: helics/buildenv:clang21-builder
units.std: 23
units.options: -DUSE_LIBCXX=ON -DUNITS_BASE_TYPE=uint64_t -DCMAKE_CXX_FLAGS="-std=c++23 -Wshadow-all"
clang22_26:
containerImage: helics/buildenv:clang22-builder
units.std: 26
units.options: -DUSE_LIBCXX=ON -DCMAKE_CXX_FLAGS=-std=c++2c
container: $[ variables['containerImage'] ]
steps:
- template: .ci/azure-build.yml
- template: .ci/azure-test.yml