-
Notifications
You must be signed in to change notification settings - Fork 5
/
azure-pipelines.yml
47 lines (39 loc) · 1.18 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
stages:
- stage: CodeFormatting
jobs:
- job: CodeFormatting
pool:
vmImage: Ubuntu-22.04
steps:
- script: |
find . -iname "*.hpp" -o -iname "*.cpp" | xargs clang-format -i
git diff --exit-code $(Build.SourceVersion)
failOnStderr: true
displayName: 'Check code formatting'
- stage: Build
condition: succeeded('CodeFormatting')
jobs:
- job: Build
strategy:
matrix:
Windows_vc143_Debug:
configuration: Debug
Windows_vc143_Release:
configuration: Release
pool:
vmImage: windows-2022
steps:
- checkout: self
fetchDepth: 1
- bash: |
choco install ninja
displayName: 'Install'
- bash: |
git config --global user.email "dummy@example.com"
git config --global user.name "Dummy Name"
displayName: 'Config git'
- script: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
cmake -B Build -G Ninja . -DCMAKE_BUILD_TYPE=$(configuration) -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl
cmake --build Build -j
displayName: 'Build'