# GitLab CI for Echoion. # # Requires a runner whose image provides the toolchain the project builds # with: GCC 16+ (C++26 with experimental reflection, -freflection), CMake # 4.0+, and the system libraries FFmpeg, SQLite3, OpenSSL, TBB, Qt6 and a # system Boost (>= 1.87) that matches VoidLibrary — a second, vendored Boost # in the same process corrupts URL parsing, so the system copy must be used. # Set the image on the runner or override `image:` below to that container. stages: - build - test - package variables: GIT_SUBMODULE_STRATEGY: recursive BUILD_DIR: build CMAKE_BUILD_TYPE: RelWithDebInfo # Reuse the CMake build tree between jobs on the same ref to skip cold # reconfigure/rebuild. cache: key: "$CI_COMMIT_REF_SLUG" paths: - build/ build: stage: build script: - cmake -S . -B "$BUILD_DIR" -DCMAKE_BUILD_TYPE="$CMAKE_BUILD_TYPE" -DBUILD_TESTS=ON - cmake --build "$BUILD_DIR" -j "$(nproc)" artifacts: paths: - build/plugins/echoion_plugin.so - build/bin/EchoionDesktop - build/lib/ expire_in: 1 week test: stage: test needs: ["build"] script: - ctest --test-dir "$BUILD_DIR" --output-on-failure # Produce distributable packages only for tagged releases. package: stage: package needs: ["build", "test"] rules: - if: '$CI_COMMIT_TAG' script: - cd "$BUILD_DIR" - cpack -G "TGZ;DEB" artifacts: paths: - build/*.tar.gz - build/*.deb expire_in: 1 month