forked from CppMicroServices/CppMicroServices
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (59 loc) · 2 KB
/
sanitizer_checks.yml
File metadata and controls
74 lines (59 loc) · 2 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: SanitizerChecks
on:
push:
branches: [ development, c\+\+14-compliant, master ]
pull_request:
branches: [ development, c\+\+14-compliant ]
workflow_dispatch:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
BUILD_DIR: ${{github.workspace}}/build
BUILD_CONFIGURATION: 0
WITH_COVERAGE: 0
WITH_MEMCHECK: 0
CC: clang
CXX: clang++
jobs:
addresssanitizer_build:
name: AddressSanitizer (with leak checking) Build and Test [Clang]
runs-on: ubuntu-20.04
env:
WITH_ASAN: 1
ASAN_OPTIONS: "detect_leaks=1 symbolize=1 detect_odr_violation=1"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install dependencies
run: sudo apt-get -yq --no-install-suggests --no-install-recommends install lld
- name: Configure Build and Test
run: ctest -VV -S ${{github.workspace}}/cmake/usCTestScript_github.cmake
threadsanitizer_build:
name: ThreadSanitizer Build and Test [Clang]
runs-on: ubuntu-20.04
env:
WITH_TSAN: 1
TSAN_OPTIONS: "suppressions=${{github.workspace}}/tsan_suppressions.txt"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install dependencies
run: sudo apt-get -yq --no-install-suggests --no-install-recommends install lld
- name: Configure Build and Test
run: ctest -VV -S ${{github.workspace}}/cmake/usCTestScript_github.cmake
undefinedbehaviorsanitizer_build:
name: UndefinedBehaviorSanitizer Build and Test [Clang]
runs-on: ubuntu-20.04
env:
WITH_UBSAN: 1
UBSAN_OPTIONS: "suppressions=${{github.workspace}}/ubsan_suppressions.txt"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install dependencies
run: sudo apt-get -yq --no-install-suggests --no-install-recommends install lld
- name: Configure Build and Test
run: ctest -VV -S ${{github.workspace}}/cmake/usCTestScript_github.cmake