-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
85 lines (78 loc) · 2.49 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
# 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:
concurrency.std: 17
concurrency.build_type: Debug
concurrency.options: -DGMLC_CONCURRENCY_ENABLE_TESTS=ON -DMLC_CONCURRENCY_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 -std=c++17"
concurrency.options: -DGMLC_CONCURRENCY_CLANG_TIDY=ON -DGMLC_CONCURRENCY_CLANG_TIDY_OPTIONS="-fix"
concurrency.std: 17
CMAKE_BUILD_PARALLEL_LEVEL: 1
pool:
vmImage: "ubuntu-latest"
container: helics/buildenv:clang14-builder
steps:
- template: .ci/azure-build.yml
- script: git diff --exit-code --color
displayName: Check tidy
- job: CppLint
variables:
concurrency.options:
pool:
vmImage: "ubuntu-latest"
container: helics/buildenv:cpplint
steps:
- bash: cpplint --counting=detailed --recursive gmlc tests benchmarks
displayName: Checking against google style guide
- job: Native
strategy:
matrix:
Linux14:
vmImage: "ubuntu-latest"
macOS17:
vmImage: "macOS-latest"
concurrency.std: 17
macOS11:
vmImage: "macOS-latest"
Windows17:
vmImage: "windows-2019"
concurrency.std: 20
Windows11:
vmImage: "windows-2019"
Windowslatest:
vmImage: "windows-2022"
concurrency.std: 17
pool:
vmImage: $(vmImage)
steps:
- template: .ci/azure-build.yml
- template: .ci/azure-test.yml
- job: Docker
pool:
vmImage: "ubuntu-latest"
strategy:
matrix:
gcc11:
containerImage: helics/buildenv:gcc11-builder
concurrency.std: 17
concurrency.options: -DCMAKE_CXX_FLAGS="-Wstrict-overflow=5"
gcc13:
containerImage: helics/buildenv:gcc13-builder
concurrency.std: 20
clang18:
containerImage: helics/buildenv:clang18-builder
container: $[ variables['containerImage'] ]
steps:
- template: .ci/azure-build.yml
- template: .ci/azure-test.yml