CI: Also build example testing SOCI system installations

This commit is contained in:
Robert Adam
2025-01-26 19:58:59 +01:00
parent 71d3911f24
commit 31324e06a3
+13 -7
View File
@@ -13,17 +13,23 @@ run_cmake_for_empty()
..
}
run_cmake_for_example()
build_example()
{
cmake "../examples/$1"
cmake -S "../examples/$1" -B "$1"
cmake --build "$1"
}
run_cmake_for_empty
run_make
if [[ "$BUILD_EXAMPLES" == "YES" ]]; then
run_cmake_for_example subdir-include
run_make
else
run_cmake_for_empty
run_make
# Install previously built SOCI library on the system
sudo make install
# This example simulates SOCI sources being embedded in the project dir
build_example subdir-include
# This example simulates SOCI being installed on the target system
build_example connect
fi
# Test release branch packaging and building from the package