From cf1735aa108f420708ac044f19784ea54619c1cb Mon Sep 17 00:00:00 2001 From: Zephyron Date: Sun, 21 Sep 2025 18:33:58 +1000 Subject: [PATCH] Fix test job dependencies in GitLab CI The test-unit job was failing due to missing Boost library dependencies. Fixed by: - Added required system packages: libboost-dev, libboost-context-dev, libboost-system-dev, libssl-dev, zlib1g-dev, pkg-config - Enabled bundled vcpkg dependencies (-DCITRON_USE_BUNDLED_VCPKG=ON) to avoid system dependency version conflicts This should resolve the CMake error: 'Could NOT find Boost (missing: Boost_INCLUDE_DIR context)' --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a74a44ef7..caa875ed4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -645,12 +645,12 @@ test-unit: - echo 'Dir::Cache::archives ".cache/apt";' >> /etc/apt/apt.conf.d/99cache # Check if packages are cached, skip update if recent - test -d .cache/apt/archives && find .cache/apt/archives -name "*.deb" -mtime -1 | head -1 > /dev/null || apt-get update -qq - - apt-get install -y -qq build-essential cmake ninja-build git + - apt-get install -y -qq build-essential cmake ninja-build git pkg-config libboost-dev libboost-context-dev libboost-system-dev libssl-dev zlib1g-dev script: # Clean and reset submodules to handle any inconsistencies - git submodule deinit --all --force || true - git submodule update --init --recursive --force - - cmake -B build-test -S . -DCMAKE_BUILD_TYPE=Debug -DCITRON_TESTS=ON -DENABLE_QT=OFF -DENABLE_SDL2=OFF -DENABLE_WEB_SERVICE=OFF + - cmake -B build-test -S . -DCMAKE_BUILD_TYPE=Debug -DCITRON_TESTS=ON -DENABLE_QT=OFF -DENABLE_SDL2=OFF -DENABLE_WEB_SERVICE=OFF -DCITRON_USE_BUNDLED_VCPKG=ON - cmake --build build-test --config Debug --parallel $CMAKE_BUILD_PARALLEL_LEVEL - cd build-test - ctest --output-on-failure