57 lines
2.0 KiB
YAML
57 lines
2.0 KiB
YAML
name: VoidBuildSystem CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build-and-test-gcc16:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Configure (Debug, Ninja, GCC 16 C++26)
|
|
run: |
|
|
cmake -S . -B build/ci-gcc -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Debug \
|
|
-DCMAKE_CXX_COMPILER=g++-16 \
|
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
|
- name: Build
|
|
run: cmake --build build/ci-gcc --parallel 4
|
|
- name: Run CTest suites
|
|
run: ctest --test-dir build/ci-gcc --output-on-failure
|
|
- name: Check formatting on owned C++ files
|
|
run: |
|
|
clang-format --dry-run --Werror \
|
|
build.cpp build.profiles.cpp build-support/*.hpp build-support/*.cpp \
|
|
include/Void/Build.hpp include/Void/Build/*/*.hpp \
|
|
src/*.cpp src/*/*.cpp \
|
|
recipes/VoidLibrary/*.hpp recipes/VoidLibrary/*.cpp \
|
|
registry/include/Void/Build/Registry/*.hpp registry/service/*.cpp \
|
|
benchmarks/*.cpp tests/*.cpp
|
|
- name: Benchmark smoke run
|
|
run: build/ci-gcc/bin/vbs_benchmarks 15
|
|
|
|
signing-openssl-gcc16:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install OpenSSL headers
|
|
run: sudo apt-get update && sudo apt-get install -y libssl-dev
|
|
- name: Configure (Debug, Ninja, GCC 16 C++26, OpenSSL)
|
|
run: |
|
|
cmake -S . -B build/ci-openssl -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Debug \
|
|
-DCMAKE_CXX_COMPILER=g++-16 \
|
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
|
- name: Build vbs_v1_tests
|
|
run: cmake --build build/ci-openssl --target vbs_v1_tests --parallel 4
|
|
- name: Run Signing suite with the OpenSSL backend
|
|
run: |
|
|
output=$(build/ci-openssl/bin/vbs_v1_tests --suite Signing --no-color)
|
|
printf '%s\n' "$output"
|
|
if printf '%s\n' "$output" | grep -q 'SKIP'; then
|
|
echo "Signing checks were skipped: the OpenSSL backend was not enabled" >&2
|
|
exit 1
|
|
fi
|