# 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 tests run: /tmp/vbs-build/bin/vbs test --project . --build-dir build-vbs --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)"