Experiment/cpp26 reflection ffi #12
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Compile Checks' | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| compile_checks: | |
| name: 'Compile checks' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: 'Checkout repository' | |
| uses: actions/checkout@v6 | |
| - name: 'Install GCC 16.1 toolchain' | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y software-properties-common | |
| sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
| sudo apt-get update -qq | |
| sudo apt-get install -y gcc-16 g++-16 ninja-build cmake | |
| - name: 'Show toolchain versions' | |
| run: | | |
| cmake --version | |
| ninja --version | |
| gcc-16 --version | |
| g++-16 --version | |
| - name: 'Configure CMAKE' | |
| run: | | |
| cmake -S . -B build/ci -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=Debug \ | |
| -DCMAKE_C_COMPILER=gcc-16 \ | |
| -DCMAKE_CXX_COMPILER=g++-16 | |
| - name: 'Build compile checks' | |
| run: | | |
| cmake --build build/ci --target cpp_core_compile_tests | |
| - name: 'Run CTest if registered tests exist' | |
| run: | | |
| ctest --test-dir build/ci --output-on-failure --no-tests=ignore |