build(release): prepare v2.7.0 ui module integration #106
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: Build safety | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| - release/** | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| - release/** | |
| jobs: | |
| build-safety: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| cmake \ | |
| ninja-build \ | |
| ccache \ | |
| mold \ | |
| hyperfine \ | |
| pkg-config \ | |
| git \ | |
| curl \ | |
| ca-certificates \ | |
| nlohmann-json3-dev \ | |
| libssl-dev \ | |
| zlib1g-dev \ | |
| libsqlite3-dev \ | |
| libbrotli-dev \ | |
| libspdlog-dev \ | |
| libfmt-dev \ | |
| libmysqlcppconn-dev | |
| - name: Verify required modules | |
| run: | | |
| set -euxo pipefail | |
| test -f CMakeLists.txt | |
| test -f modules/core/CMakeLists.txt | |
| test -f modules/template/CMakeLists.txt | |
| test -f modules/ui/CMakeLists.txt | |
| test -f modules/cli/CMakeLists.txt | |
| - name: Configure Vix CLI | |
| run: | | |
| cmake -S . -B build-ci -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | |
| -DVIX_BUILD_TESTS=OFF \ | |
| -DVIX_BUILD_EXAMPLES=OFF \ | |
| -DVIX_ENABLE_INSTALL=OFF \ | |
| -DVIX_ENABLE_HTTP_COMPRESSION=OFF \ | |
| -DVIX_DB_USE_MYSQL=OFF \ | |
| -DVIX_CORE_WITH_MYSQL=OFF \ | |
| -DVIX_ENABLE_TEMPLATE=ON \ | |
| -DVIX_ENABLE_UI=ON \ | |
| -DVIX_UI_BUILD_TESTS=OFF \ | |
| -DVIX_UI_BUILD_EXAMPLES=OFF \ | |
| -DVIX_UI_BUILD_BENCHMARKS=OFF \ | |
| -DUI_BUILD_TESTS=OFF \ | |
| -DUI_BUILD_EXAMPLES=OFF \ | |
| -DUI_BUILD_BENCHMARKS=OFF \ | |
| -DUI_INSTALL=OFF | |
| - name: Build Vix CLI | |
| run: | | |
| cmake --build build-ci --target vix -- -j"$(nproc)" | |
| - name: Show Vix version | |
| run: | | |
| ./build-ci/vix --version || ./build-ci/vix version || true | |
| - name: Run build safety tests | |
| run: | | |
| VIX_BIN="$PWD/build-ci/vix" scripts/test-build-safety.sh | |
| - name: Run build benchmark smoke test | |
| run: | | |
| VIX_BIN="$PWD/build-ci/vix" RUNS=3 WARMUP=1 TARGET=vix scripts/bench-build.sh | |
| - name: Upload benchmark report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: vix-build-benchmark | |
| path: .vix/bench/reports/ |