Feature/feb 2026 #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: C++ CI Linux | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./backend-v2 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake gcc g++ libprotobuf-dev protobuf-compiler libcmocka-dev libgmp-dev lsb-release wget software-properties-common gnupg zlib1g-dev | |
| - name: Install LLVM 20 | |
| run: | | |
| wget https://apt.llvm.org/llvm.sh | |
| chmod +x llvm.sh | |
| sudo ./llvm.sh 20 | |
| sudo apt-get install -y clang-20 lld-20 libc++-20-dev libc++abi-20-dev llvm-20-dev | |
| - name: Configure CMake | |
| run: | | |
| cmake -S . -B build \ | |
| -DCMAKE_C_COMPILER=clang-20 \ | |
| -DCMAKE_CXX_COMPILER=clang++-20 \ | |
| -DLLVM_DIR=/usr/lib/llvm-20/lib/cmake/llvm \ | |
| -DCMAKE_BUILD_TYPE=Debug | |
| - name: Build | |
| run: cmake --build build -j$(nproc) | |
| - name: Run Tests | |
| working-directory: ./backend-v2/build | |
| run: ctest --output-on-failure |