update serdepp dependencies #167
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: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
ubuntu-gcc: | |
runs-on: ubuntu-latest | |
env: | |
CMAKE_FLAGS: "-DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_USE_YAML-CPP=ON -DSERDEPP_BUILD_EXAMPLES=ON -DSERDEPP_USE_RAPIDJSON=ON -DSERDEPP_USE_FMT=ON -DSERDEPP_BUILD_TESTING=ON -DSERDEPP_USE_CATCH2=ON" | |
strategy: | |
matrix: | |
build-type: ["Release", "Debug"] | |
gcc-version: ["11", "12", "latest"] | |
container: gcc:${{ matrix.gcc-version }} | |
steps: | |
- name: Get latest CMake and ninja | |
uses: lukka/[email protected] | |
- name: Install git on container | |
run: apt update && apt install -y git | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: CMake build | |
run: | | |
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.build-type}} ${{env.CMAKE_FLAGS}} . | |
cmake --build ./build --config ${{matrix.build-type}} | |
- name: Run Test Script | |
working-directory: build | |
run: ctest -C ${{matrix.build-type}} --output-on-failure | |
ubuntu-llvm: | |
runs-on: ubuntu-latest | |
env: | |
CMAKE_FLAGS: "-DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_USE_YAML-CPP=ON -DSERDEPP_BUILD_EXAMPLES=ON -DSERDEPP_USE_RAPIDJSON=ON -DSERDEPP_USE_FMT=ON -DSERDEPP_BUILD_TESTING=ON -DSERDEPP_USE_CATCH2=ON" | |
strategy: | |
matrix: | |
build-type: ["Release", "Debug"] | |
clang-version: ["8", "9", "10", "11", "12", "13", "latest"] #"14", "15-bullseye", "latest"] | |
container: silkeh/clang:${{ matrix.clang-version }} | |
steps: | |
- name: Get latest CMake | |
uses: lukka/[email protected] | |
- name: Install git on container | |
run: apt update && apt install -y git | |
- name: Clone Repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: CMake build | |
run: | | |
cmake -Bbuild -DCMAKE_BUILD_TYPE=${{matrix.build-type}} ${{env.CMAKE_FLAGS}} . | |
cmake --build ./build --config ${{matrix.build-type}} | |
- name: Run Test Script | |
working-directory: build | |
run: ctest -C ${{matrix.build-type}} --output-on-failure |