diff options
author | Martin Storsjo <martin@martin.st> | 2023-10-06 15:01:53 +0300 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2023-10-06 15:10:42 +0300 |
commit | 0bfca3e06a098811a4cb71f285aa4e14e8f81372 (patch) | |
tree | 0cf1f0bab79a6f0fb0fc37b9cc9e9d57a2f4141d /.github | |
parent | 8ac2f359c6d64569b8da836338fae80e0169e7c2 (diff) | |
download | fdk-aac-0bfca3e06a098811a4cb71f285aa4e14e8f81372.tar.gz fdk-aac-0bfca3e06a098811a4cb71f285aa4e14e8f81372.tar.bz2 fdk-aac-0bfca3e06a098811a4cb71f285aa4e14e8f81372.zip |
ci: Run tests, add sanitizer build configurations that run tests too
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index baf261a..8dcc4e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,10 @@ jobs: ./autogen.sh ./configure --enable-example make -j$(nproc) CFLAGS="-g -O2 -Werror" CXXFLAGS="-g -O2 -Werror" + - name: Run tests + run: | + sudo apt-get install --no-install-recommends ffmpeg + ./test/run-test.sh linux-cmake: runs-on: ubuntu-latest @@ -22,6 +26,43 @@ jobs: run: | cmake . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_PROGRAMS=YES -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror -Wno-stringop-overflow" cmake --build build + - name: Run tests + run: | + sudo apt-get install --no-install-recommends ffmpeg + cd build + ../test/run-test.sh + + linux-sanitizers-gcc-autotools: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Build + run: | + ./autogen.sh + FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer -fno-sanitize=shift-base -DDEBUG -fno-sanitize-recover=all" + CC="gcc $FLAGS" CXX="g++ $FLAGS" ./configure --enable-example + make -j$(nproc) + - name: Run tests + run: | + sudo apt-get install --no-install-recommends ffmpeg + ./test/run-test.sh + + linux-sanitizers-clang-cmake: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Build + run: | + FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer -fno-sanitize=shift-base -DDEBUG -fno-sanitize-recover=all -fno-sanitize=vptr -fno-sanitize=function" + cmake . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_PROGRAMS=YES -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_FLAGS="$FLAGS" -DCMAKE_CXX_FLAGS="$FLAGS" + cmake --build build + - name: Run tests + run: | + sudo apt-get install --no-install-recommends ffmpeg + cd build + ../test/run-test.sh macos-autotools: runs-on: macos-latest |