Skip to content

Commit 3504496

Browse files
authoredDec 26, 2020
[CI] Add RelWithDebInfo mode to Linux (#6555)
* [CI] Add RelWithDebInfo mode to Linux Use 'matrix' to run the same build and test steps with debug and release withe debug symbols. * Missed 'strategy' * Still perform full build before test
1 parent 201d6c2 commit 3504496

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed
 

‎azure-pipelines.yml

+15-7
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,30 @@ jobs:
77
timeoutInMinutes: 0
88
pool:
99
vmImage: 'ubuntu-latest'
10+
strategy:
11+
matrix:
12+
debug:
13+
build_type: 'Debug'
14+
release_with_debug:
15+
build_type: 'RelWithDebInfo'
1016

1117
steps:
1218
- script: sudo apt-get install -y ninja-build clang libicu-dev
1319
displayName: 'Install dependencies'
1420

1521
- script: |
16-
mkdir -p build.debug
22+
mkdir -p build
1723
displayName: 'Create build directories'
1824
19-
- task: CMake@1
20-
inputs:
21-
workingDirectory: 'build.debug'
22-
cmakeArgs: '-GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang ..'
25+
- script: |
26+
cd build
27+
cmake -GNinja -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang ..
28+
displayName: CMake
29+
env:
30+
BUILD_TYPE: $(build_type)
2331
2432
- script: |
25-
cd build.debug
33+
cd build
2634
ninja
2735
ninja check
28-
displayName: 'Build and test debug'
36+
displayName: 'Build and test'

0 commit comments

Comments
 (0)
Please sign in to comment.