mirror of
https://github.com/SOCI/soci.git
synced 2026-05-22 13:08:51 -05:00
CI: Also build example testing SOCI system installations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user