-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (47 loc) · 1.25 KB
/
memcheck.yaml
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
name: Sanitizer Checks
on: [push, pull_request]
jobs:
memcheck:
name: Memcheck
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Valgrind
run: |
sudo apt-get update
sudo apt-get install valgrind
- name: Configure and Build
run: |
mkdir build && cd build
cmake -DBUILD_TESTING=ON ../
make
- name: Run Memcheck
run: |
ctest -V -T memcheck
working-directory: build
sanitizers:
name: Sanitizers
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Configure and Build with AddressSanitizer
run: |
mkdir build && cd build
cmake -DBUILD_TESTING=ON -DENABLE_ASAN=ON ../
make
- name: Run AddressSanitizer
run: |
ctest -V
working-directory: build
- name: Configure and Build with ThreadSanitizer
run: |
rm -rf build
mkdir build && cd build
cmake -DBUILD_TESTING=ON -DENABLE_TSAN=ON ../
make
- name: Run ThreadSanitizer
run: |
ctest -V
working-directory: build