Repository navigation
Handle unused parameters when DOCTEST_CONFIG_DISABLE is defined #392
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: CI Linux/GCC | |
| on: | |
| push: | |
| pull_request: | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| build: | |
| name: ${{ matrix.config.name }} | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { | |
| name: "Ubuntu 22.04 GCC 10 C++11 with cross-translation units mocks", | |
| os: ubuntu-22.04, | |
| build_type: Debug, | |
| cc: "gcc-10", cxx: "g++-10", | |
| cxx_standard: 11, | |
| additional_parameters: "-DENABLE_FAKEIT_CROSS_TRANSLATION_UNITS_MOCKS_IN_TESTS=ON" | |
| } | |
| - { | |
| name: "Ubuntu 22.04 GCC 10", | |
| os: ubuntu-22.04, | |
| build_type: Debug, | |
| cc: "gcc-10", cxx: "g++-10" | |
| } | |
| - { | |
| name: "Ubuntu 22.04 GCC 11", | |
| os: ubuntu-22.04, | |
| build_type: Debug, | |
| cc: "gcc-11", cxx: "g++-11" | |
| } | |
| - { | |
| name: "Ubuntu 22.04 GCC 12", | |
| os: ubuntu-22.04, | |
| build_type: Debug, | |
| cc: "gcc-12", cxx: "g++-12" | |
| } | |
| - { | |
| name: "Ubuntu 24.04 GCC 13", | |
| os: ubuntu-24.04, | |
| build_type: Debug, | |
| cc: "gcc-13", cxx: "g++-13" | |
| } | |
| - { | |
| name: "Ubuntu 24.04 GCC 14 C++11", | |
| os: ubuntu-24.04, | |
| build_type: Debug, | |
| cc: "gcc-14", cxx: "g++-14", | |
| cxx_standard: 11 | |
| } | |
| - { | |
| name: "Ubuntu 24.04 GCC 14 C++14", | |
| os: ubuntu-24.04, | |
| build_type: Debug, | |
| cc: "gcc-14", cxx: "g++-14", | |
| cxx_standard: 14 | |
| } | |
| - { | |
| name: "Ubuntu 24.04 GCC 14 C++17", | |
| os: ubuntu-24.04, | |
| build_type: Debug, | |
| cc: "gcc-14", cxx: "g++-14", | |
| cxx_standard: 17 | |
| } | |
| - { | |
| name: "Ubuntu 24.04 GCC 14 C++20", | |
| os: ubuntu-24.04, | |
| build_type: Debug, | |
| cc: "gcc-14", cxx: "g++-14", | |
| cxx_standard: 20 | |
| } | |
| - { | |
| name: "Ubuntu 24.04 GCC 14 C++23", | |
| os: ubuntu-24.04, | |
| build_type: Debug, | |
| cc: "gcc-14", cxx: "g++-14", | |
| cxx_standard: 23 | |
| } | |
| - { | |
| name: "Ubuntu 24.04 GCC 14 C++26", | |
| os: ubuntu-24.04, | |
| build_type: Debug, | |
| cc: "gcc-14", cxx: "g++-14", | |
| cxx_standard: 26 | |
| } | |
| - { | |
| name: "Ubuntu 24.04 GCC 14 C++26 with cross-translation units mocks", | |
| os: ubuntu-24.04, | |
| build_type: Debug, | |
| cc: "gcc-14", cxx: "g++-14", | |
| cxx_standard: 26, | |
| additional_parameters: "-DENABLE_FAKEIT_CROSS_TRANSLATION_UNITS_MOCKS_IN_TESTS=ON" | |
| } | |
| - { | |
| name: "Ubuntu 24.04 GCC with sanitizers", | |
| os: ubuntu-24.04, | |
| build_type: Debug, | |
| cc: "gcc", cxx: "g++", | |
| enable_sanitizers_in_tests: ON | |
| } | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Build project | |
| env: | |
| CC: ${{ matrix.config.cc }} | |
| CXX: ${{ matrix.config.cxx }} | |
| run: | | |
| cmake -S . -B build \ | |
| -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \ | |
| -DENABLE_TESTING=ON \ | |
| -DWARNINGS_AS_ERRORS_FOR_TESTS=ON \ | |
| -DOVERRIDE_CXX_STANDARD_FOR_TESTS=${{ matrix.config.cxx_standard }} \ | |
| -DENABLE_SANITIZERS_IN_TESTS=${{ matrix.config.enable_sanitizers_in_tests }} \ | |
| ${{ matrix.config.additional_parameters }} | |
| cmake --build build -j | |
| - name: Run tests | |
| run: | | |
| ctest --test-dir build/ --verbose |