Skip to content

Ci build baresip apps #15

Ci build baresip apps

Ci build baresip apps #15

Workflow file for this run

name: Sanitizers
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
sanitizers:
runs-on: ubuntu-latest
strategy:
matrix:
sanitizer: [thread, address, undefined]
env:
CC: clang
CMAKE_GENERATOR: Ninja
CXXFLAGS: "-fsanitize=${{ matrix.sanitizer }} -fno-sanitize-recover"
CFLAGS: "-fsanitize=${{ matrix.sanitizer }} -fno-sanitize-recover"
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
- uses: sreimers/pr-dependency-action@v0.6
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;dtls_srtp;srtp;aufile" && cmake --build build -j
- name: run selftest
run: ./build/test/selftest