-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathazure-pipelines-linux-clang.yml
More file actions
51 lines (47 loc) · 1.29 KB
/
azure-pipelines-linux-clang.yml
File metadata and controls
51 lines (47 loc) · 1.29 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
#
# WLA DX Linux build script (Clang)
#
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
# Setting these at the job level ensures CMake picks them up automatically
CC: clang
CXX: clang++
steps:
- script: |
set -ex
sudo apt -y update
sudo apt install -y valgrind clang
displayName: 'Install Dependencies'
timeoutInMinutes: 60
- script: |
make clean
# Debug build with enhanced warnings to catch uninitialized variables
cmake -DGDB_DEBUGGING=ON \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_FLAGS="-g -Wall -Wextra -Wuninitialized" \
-DCMAKE_CXX_FLAGS="-g -Wall -Wextra -Wuninitialized" \
-G "Unix Makefiles"
make
displayName: 'Build Debug (Clang)'
timeoutInMinutes: 60
- script: |
./run_tests.sh
displayName: 'Run Tests (Debug)'
timeoutInMinutes: 60
- script: |
make clean
# Release build with debug symbols for Valgrind + strict warnings
cmake -G "Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="-g -Wall -Wextra -Wuninitialized" \
-DCMAKE_CXX_FLAGS="-g -Wall -Wextra -Wuninitialized"
make
displayName: 'Build Release (Clang) with Debug Symbols'
timeoutInMinutes: 60
- script: |
./run_tests.sh
displayName: 'Run Tests (Release)'
timeoutInMinutes: 60