Skip to content

rtcp: re-anchor the NTP timeline when the last session drops #49

rtcp: re-anchor the NTP timeline when the last session drops

rtcp: re-anchor the NTP timeline when the last session drops #49

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test-no-tls:
strategy:
matrix:
compiler: [gcc, clang]
runs-on: ubuntu-latest
env:
CC: ${{ matrix.compiler }}
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake clang
- name: Build and test (no TLS)
run: |
cd tests
cmake -B build
cmake --build build
./build/tests
test-tls-backends:
strategy:
fail-fast: false
matrix:
backend:
- { name: OpenSSL, flag: COMPY_TLS_OPENSSL, pkg: libssl-dev }
- { name: wolfSSL, flag: COMPY_TLS_WOLFSSL, pkg: libwolfssl-dev }
- { name: mbedTLS, flag: COMPY_TLS_MBEDTLS, pkg: libmbedtls-dev }
runs-on: ubuntu-latest
name: test-${{ matrix.backend.name }}
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake libmbedtls-dev ${{ matrix.backend.pkg }}
- name: Build and test (${{ matrix.backend.name }})
env:
LSAN_OPTIONS: suppressions=${{ github.workspace }}/tests/lsan_suppressions.txt
run: |
cd tests
cmake -B build -D${{ matrix.backend.flag }}=ON
cmake --build build
./build/tests
test-tsan:
strategy:
fail-fast: false
matrix:
backend:
- { name: OpenSSL, flag: COMPY_TLS_OPENSSL, pkg: libssl-dev }
- { name: wolfSSL, flag: COMPY_TLS_WOLFSSL, pkg: libwolfssl-dev }
- { name: mbedTLS, flag: COMPY_TLS_MBEDTLS, pkg: libmbedtls-dev }
runs-on: ubuntu-latest
name: tsan-${{ matrix.backend.name }}
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake libmbedtls-dev ${{ matrix.backend.pkg }}
- name: Build and test with TSAN (${{ matrix.backend.name }})
run: |
cd tests
cmake -B build -D${{ matrix.backend.flag }}=ON -DCOMPY_TSAN=ON
cmake --build build
./build/tests
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install clang-format-19
run: |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-19 main" | sudo tee /etc/apt/sources.list.d/llvm.list
sudo apt-get update && sudo apt-get install -y clang-format-19
- name: Check formatting
run: |
find include src tests -name '*.c' -o -name '*.h' | \
grep -v '/priv/compiler_attrs.h' | \
xargs clang-format-19 --dry-run --Werror