From 3d80649b8c1fa2c1a8641482675594b3365c917d Mon Sep 17 00:00:00 2001 From: Void agent Date: Sat, 5 Dec 2026 10:46:26 +0300 Subject: [PATCH] ci: add native VBS workflow (template) --- .gitea/workflows/vbs.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitea/workflows/vbs.yml diff --git a/.gitea/workflows/vbs.yml b/.gitea/workflows/vbs.yml new file mode 100644 index 0000000..c24c39d --- /dev/null +++ b/.gitea/workflows/vbs.yml @@ -0,0 +1,38 @@ +# Native VoidBuildSystem build for VoidLibrary. +# Template: adapt runner labels and toolchain packages to the actual CI runner. +name: VoidLibrary (VBS) +on: + push: + branches: [main, build-vbs] + pull_request: + +jobs: + vbs-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install toolchain and system libraries + run: | + sudo apt-get update + sudo apt-get install -y cmake ninja-build g++ libssl-dev libboost-all-dev \ + libsqlite3-dev libsodium-dev liblua5.4-dev + + - name: Bootstrap VoidBuildSystem + run: | + git clone --depth 1 https://git.faumaray.com/Void/Build-System.git /tmp/vbs-src + cmake -S /tmp/vbs-src -B /tmp/vbs-build -G Ninja -DCMAKE_BUILD_TYPE=Release + cmake --build /tmp/vbs-build --parallel 4 --target vbs + + - name: Native build + run: /tmp/vbs-build/bin/vbs build --project . --build-dir build-vbs --jobs 4 + + - name: Native smoke test + run: /tmp/vbs-build/bin/vbs test --project . --build-dir build-vbs --target void_smoke --jobs 4 + + - name: Install check + run: | + /tmp/vbs-build/bin/vbs install --project . --build-dir build-vbs \ + --prefix "$PWD/dist" --package-name VoidLibrary --package-version 0.1.0 + test -d dist/include/Void + test -n "$(ls dist/lib/*.a | head -1)"