Skip to content

Groundwork in CMake, build workflows, and header include cleanup #266

Groundwork in CMake, build workflows, and header include cleanup

Groundwork in CMake, build workflows, and header include cleanup #266

Workflow file for this run

name: Linux
on: [push, pull_request]
jobs:
gcc14:
strategy:
fail-fast: false
matrix:
config: [Debug, Release]
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
with:
submodules: true
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get upgrade
sudo add-apt-repository -y universe
sudo apt-get update
sudo apt-get install -yq libgtest-dev libboost-program-options-dev rapidjson-dev ninja-build gcc-14 g++-14
- name: Build GTest
run: |
cmake -E make_directory gtest
cd gtest
cmake -DCMAKE_BUILD_TYPE=${{ matrix.config }} -G Ninja /usr/src/gtest
cmake --build . -j -v
sudo cmake --install .
- name: Create Build Environment
run: cmake -E make_directory build
- name: Configure CMake
shell: pwsh
env:
CC: gcc-14
CXX: g++-14
working-directory: build/
run: |
$cmakeBuildType = '${{ matrix.config }}'
cmake "-DCMAKE_BUILD_TYPE=$cmakeBuildType" -G Ninja ${{ github.workspace }}
- name: Build
working-directory: build/
run: cmake --build . -j -v
- name: Test
working-directory: build/
run: ctest --output-on-failure