ci: add native VBS workflow (template)
VoidLibrary (VBS) / vbs-build (push) Failing after 49s
VoidLibrary (VBS) / vbs-build (pull_request) Failing after 44s

This commit is contained in:
Void agent committed 2026-12-05 10:46:26 +03:00
1 parent e44612b505
commit 3d80649b8c
1 file changed
+38
+38
View File
@@ -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)"