From 78af6cb1a724dc0b38eb99c4fc0e495ee4b9e3b6 Mon Sep 17 00:00:00 2001 From: Johannes Lenzen Date: Tue, 2 Feb 2021 16:15:16 +0100 Subject: [PATCH] Add libraries to artifacts --- CI/ci-linux-build.sh | 9 +++++++++ CI/ci-linux-test.sh | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/CI/ci-linux-build.sh b/CI/ci-linux-build.sh index 9932435b..9d9f1fb5 100755 --- a/CI/ci-linux-build.sh +++ b/CI/ci-linux-build.sh @@ -55,6 +55,15 @@ else # build unittests make $MAKE_OPTIONS unittests + + # Creating System Library folder to contain all dependend libraries to run OpenFlipper + if [ ! -d systemlib ]; then + echo "Creating systemlib folder" + mkdir systemlib + fi + + echo "Copying all required libraries of OpenFlipper to the systemlib directory" + ldd bin/OpenFlipper | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' systemlib fi cd .. \ No newline at end of file diff --git a/CI/ci-linux-test.sh b/CI/ci-linux-test.sh index 9c793c8f..063e3781 100755 --- a/CI/ci-linux-test.sh +++ b/CI/ci-linux-test.sh @@ -47,6 +47,10 @@ fi # Run cmake to make sure the tests are configured correctly for this system cmake -DOPENFLIPPER_BUILD_UNIT_TESTS=TRUE -DSTL_VECTOR_CHECKS=ON $OPTIONS ../ +#tell the location to the libs from build jobs +export LD_LIBRARY_PATH=$(pwd)/Build/lib:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH=$(pwd)/Build/systemlib:$LD_LIBRARY_PATH + echo -e "${OUTPUT}" echo "" echo "======================================================================"