-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
89 lines (76 loc) · 2.1 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
variables:
platform: x64
resources:
- repo: self
fetchDepth: 1
stages:
- stage: CodeFormatting
jobs:
- job: CodeFormatting
pool:
vmImage: Ubuntu-20.04
variables:
CC: gcc
CXX: g++
steps:
- bash: |
sudo apt-get install clang-format
displayName: 'Install'
- script: |
mkdir -p Build/clang-format
cd Build/clang-format
cmake -G "Unix Makefiles" -Dgolden_sun_clang_format=ON ../../
make clang_format
cd ../../
git diff --exit-code $(Build.SourceVersion)
failOnStderr: true
displayName: 'Clang-Format'
- stage: Build
condition: succeeded('CodeFormatting')
jobs:
- job: Build
strategy:
matrix:
Windows_vc143_Debug:
vmImage: windows-2022
project: vs2022
compiler: vc143
configuration: Debug
id: 'vc143_win_$(platform)_$(configuration)'
Windows_vc143_Release:
vmImage: windows-2022
project: vs2022
compiler: vc143
configuration: Release
id: 'vc143_win_$(platform)_$(configuration)'
Windows_vc142_Debug:
vmImage: windows-2019
project: vs2019
compiler: vc142
configuration: Debug
id: 'vc142_win_$(platform)_$(configuration)'
Windows_vc142_Release:
vmImage: windows-2019
project: vs2019
compiler: vc142
configuration: Release
id: 'vc142_win_$(platform)_$(configuration)'
pool:
vmImage: $(vmImage)
steps:
- script: |
git config --global user.email "[email protected]"
git config --global user.name "Dummy Name"
# Reset the repo to restore changes in External
git reset --hard
displayName: 'Config git'
- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
addToPath: true
architecture: 'x64'
- task: PythonScript@0
displayName: 'Build'
inputs:
scriptPath: Build.py
arguments: '$(project) $(compiler) $(platform) $(configuration)'