From 72a6ba133f809b1e3ccf1c9de64f64393c610168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20R=C3=B6hling?= Date: Sun, 14 Apr 2024 23:10:28 +0200 Subject: [PATCH] Run CI with system libraries --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 219df43..81d0c7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,3 +50,21 @@ jobs: run: | postmap -q test@otherdomain.com socketmap:unix:/var/spool/postfix/srs:forward | tee /tmp/srs-alias.txt postmap -q "$(cat /tmp/srs-alias.txt)" socketmap:unix:/var/spool/postfix/srs:reverse + packaging: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: | + sudo apt-get update -qq + sudo apt-get install -y cmake libconfuse-dev libhiredis-dev libsqlite3-dev redis + - name: Build PostSRSd + run: | + mkdir _build + cd _build + cmake .. -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS -DWITH_SQLITE=ON -DWITH_REDIS=ON + make VERBOSE=ON + - name: Run tests + run: | + cd _build + ctest --output-on-failure