Merge pull request #341 from wravery/merge-337 #319
This file contains 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: Linux | |
on: [push, pull_request] | |
jobs: | |
Linux: | |
strategy: | |
fail-fast: false | |
matrix: | |
compiler: [gcc-14, clang-18] | |
config: [debug, release] | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/[email protected] | |
with: | |
submodules: true | |
- name: Install Dependencies | |
run: | | |
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 | |
- name: Build GTest | |
run: | | |
cmake -E make_directory gtest | |
cd gtest | |
cmake -DCMAKE_BUILD_TYPE=${{ matrix.config == 'debug' && 'Debug' || 'Release' }} -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 | |
run: cmake --preset ${{ matrix.compiler }}-${{ matrix.config }} -DGRAPHQL_USE_TAOCPP_JSON=OFF -DCMAKE_TOOLCHAIN_FILE= | |
- name: Build | |
run: cmake --build --preset ${{ matrix.compiler }}-${{ matrix.config }} -j -v | |
- name: Test | |
run: ctest --preset ${{ matrix.compiler }}-${{ matrix.config }} --output-on-failure |