ci(amd64/gcc/unit_tests): replace conan commands with cmake

This commit is contained in:
light7734 2025-09-21 14:02:30 +03:30
parent 3d3ddd2197
commit 6537b456f9
Signed by: light7734
GPG key ID: 8C30176798F1A6BA

View file

@ -5,25 +5,18 @@ cd $(git rev-parse --show-toplevel)/
rm -rf ./build rm -rf ./build
Xvfb :99 -screen 0 1024x768x16 & Xvfb :99 -screen 0 1024x768x16 &
export DISPLAY=:99
export CXX=$(which g++) export CXX=$(which g++)
export CC=$(which gcc) export CC=$(which gcc)
export DISPLAY=:99
conan build . \ cmake .. \
-c tools.system.package_manager:mode=install \ -G Ninja \
-c tools.cmake.cmaketoolchain:generator=Ninja \ -DCMAKE_LINKER_TYPE=MOLD \
-c tools.build:compiler_executables='{"c": "gcc", "cpp": "g++"}' \ -DENABLE_UNIT_TESTS=ON \
-s build_type=Release \ -DENABLE_LLVM_COVERAGE=ON \
-s compiler=gcc \ -DCMAKE_BUILD_TYPE=Release \
-s compiler.version=15 \ -DCMAKE_CXX_FLAGS="-std=c++23 -stdlib=libstdc++ -g -fno-omit-frame-pointer" \
-s compiler.libcxx=libstdc++ \ && cmake --build . -j `nproc`
-o enable_unit_tests=True \
-o enable_fuzz_tests=False \
-o enable_llvm_coverage=False \
-o enable_static_analysis=False \
-o use_mold=True \
-o export_compile_commands=False \
--build=missing
for test in $(find ./build -type f -name '*_tests' -executable); do for test in $(find ./build -type f -name '*_tests' -executable); do
echo "Running $test" echo "Running $test"