chore(release): prepare v2.8.4 #272
Workflow file for this run
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/** | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: build-safety-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-safety: | |
| name: Build safety (Ubuntu) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Install system dependencies | |
| run: | | |
| set -euxo pipefail | |
| 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: | | |
| set -euxo pipefail | |
| 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_CLI_ENABLE_DESKTOP=ON \ | |
| -DVIX_UI_ENABLE_LINUX_WEBVIEW=OFF \ | |
| -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: | | |
| set -euxo pipefail | |
| cmake --build build-ci --target vix -- -j"$(nproc)" | |
| - name: Show Vix version | |
| run: | | |
| set -x | |
| ./build-ci/vix --version || ./build-ci/vix version || true | |
| - name: Run build safety tests | |
| run: | | |
| set -euxo pipefail | |
| VIX_BIN="$PWD/build-ci/vix" scripts/test-build-safety.sh | |
| - name: Run build benchmark smoke test | |
| run: | | |
| set -euxo pipefail | |
| VIX_BIN="$PWD/build-ci/vix" \ | |
| RUNS=3 \ | |
| WARMUP=1 \ | |
| TARGET=vix \ | |
| scripts/bench-build.sh | |
| - name: Upload benchmark report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: vix-build-benchmark-${{ github.run_id }} | |
| path: .vix/bench/reports/ | |
| if-no-files-found: warn |