mirror of
https://git.citron-emu.org/citron/emulator
synced 2026-01-31 06:43:35 +00:00
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)'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user