-
Notifications
You must be signed in to change notification settings - Fork 436
68 lines (54 loc) · 1.79 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Sanitizers
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
sanitizers:
runs-on: ubuntu-22.04
strategy:
matrix:
sanitizer: [thread, address, undefined]
env:
CC: clang-17
CXX: clang++-17
CMAKE_GENERATOR: Ninja
CXXFLAGS: "-fsanitize=${{ matrix.sanitizer }} -fno-sanitize-recover=all -fno-sanitize=function"
CFLAGS: "-fsanitize=${{ matrix.sanitizer }} -fno-sanitize-recover=all -fno-sanitize=function"
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 libssl-dev ninja-build
- name: mmap rnd_bits workaround
run: |
sudo sysctl -w vm.mmap_rnd_bits=28
- name: Install clang-tools
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main"
sudo apt-get update && sudo apt-get install -y clang-17
- uses: sreimers/pr-dependency-action@v1
with:
name: re
repo: https://github.com/baresip/re
secret: ${{ secrets.GITHUB_TOKEN }}
- name: make re
run: |
cmake -S re -B re/build -DHAVE_THREADS=
cmake --build re/build -j
mv re ../.
- name: ldconfig
run: sudo ldconfig
- name: make baresip selftest
run: cmake -B build -DHAVE_THREADS= -DSTATIC=1 -DMODULES="g711;ausine;fakevideo;auconv;auresamp;dtls_srtp;srtp;aufile" && cmake --build build -j
- name: run selftest
run: ./build/test/selftest