forked from baresip/re
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 961 Bytes
/
sanitizers.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
name: Sanitizers
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
sanitizers:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
sanitizer: [thread, address]
env:
CC: clang
CMAKE_GENERATOR: Ninja
CFLAGS: "-fsanitize=${{ matrix.sanitizer }}"
ASAN_OPTIONS: fast_unwind_on_malloc=0
steps:
- uses: actions/checkout@v4
- name: fix flaky azure mirrors
if: ${{ runner.os == 'Linux' }}
run: |
sudo sed -i 's/azure\./de\./' /etc/apt/sources.list
- name: install packages
run: |
sudo apt-get update && sudo apt-get install -y ninja-build
- name: make info
run: |
echo "OS: ${{ matrix.os }}"
clang - --version
- name: cmake
run: |
cmake -B build -DHAVE_THREADS= && cmake --build build -j -t retest
- name: retest
run: |
./build/test/retest -av