ci: Build with libomemo-c for the "Linux Meson" job

The rest will stay with libsignal-protocol-c. So we test both.
Let's add the dependency to all Dockerfiles already.
This commit is contained in:
Michael Vetter
2026-03-19 20:11:26 +01:00
parent 046eb13e2e
commit e252f54436
7 changed files with 19 additions and 7 deletions

View File

@@ -35,15 +35,20 @@ tests=(
"-Dgdk-pixbuf=disabled"
)
BACKEND_OPT=""
if [ -n "${OMEMO_BACKEND}" ]; then
BACKEND_OPT="-Domemo-backend=${OMEMO_BACKEND}"
fi
# Run Valgrind check (Only on Linux, on first/full feature set)
if [[ "$(uname | tr '[:upper:]' '[:lower:]')" == linux* ]]; then
echo "--> Running Valgrind check with full features"
echo "--> Running Valgrind check with full features ${BACKEND_OPT}"
meson setup build_valgrind ${tests[0]} -Dtests=true -Db_sanitize=address,undefined
meson setup build_valgrind ${tests[0]} ${BACKEND_OPT} -Dtests=true -Db_sanitize=address,undefined
meson compile -C build_valgrind
meson test -C build_valgrind --print-errorlogs --wrap=valgrind || echo "Valgrind issues detected"
rm -rf build_valgrind
fi
@@ -51,12 +56,12 @@ fi
for features in "${tests[@]}"
do
echo "----------------------------------------------------"
echo "--> Building with: ${features}"
echo "--> Building with: ${features} ${BACKEND_OPT}"
echo "----------------------------------------------------"
rm -rf build_run
meson setup build_run ${features} -Dtests=true
meson setup build_run ${features} ${BACKEND_OPT} -Dtests=true
meson compile -C build_run
meson test -C build_run --print-errorlogs