Reflection and filesystem

Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-05-03 18:09:46 +03:00
1 parent f0825fbd1a
commit 42268c6c35
45 files changed
+2732 -262

No files matched your search

+62
View File
@@ -0,0 +1,62 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-gcc16:
name: GCC 16 / C++26 / ${{ matrix.config }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
config:
- default
- werror
- sanitizers
include:
- config: default
cmake_args: ""
- config: werror
cmake_args: "-DVOID_WARNINGS_AS_ERRORS=ON"
- config: sanitizers
cmake_args: "-DVOID_ENABLE_ASAN=ON -DVOID_ENABLE_UBSAN=ON -DVOID_WARNINGS_AS_ERRORS=ON"
steps:
- uses: actions/checkout@v4
- name: Install GCC 16 + tooling
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y g++-16 ninja-build cmake libboost-all-dev
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-16 100
- name: Cache FetchContent dependencies
uses: actions/cache@v4
with:
path: build/_deps
key: ${{ runner.os }}-fetchcontent-boost-${{ hashFiles('cmake/Dependencies.cmake') }}
- name: Configure
run: |
cmake -B build -S . -G Ninja \
-DCMAKE_CXX_COMPILER=g++-16 \
-DCMAKE_BUILD_TYPE=Debug \
${{ matrix.cmake_args }}
- name: Build
run: cmake --build build
- name: Test
run: ctest --test-dir build --output-on-failure
# NOTE: a Clang job is intentionally absent. The library targets C++26
# with std::meta reflection (-freflection), which Clang does not yet
# support. The Repr.hpp helper degrades gracefully via __has_include,
# but CMakeLists.txt currently hard-pins CMAKE_CXX_STANDARD to 26.
# Add a Clang job once Clang ships P2996 reflection (tracked in the
# roadmap as Phase 2 follow-up).