🛠 pivot is now used differently #23
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: Push & Pull Request Continuous Integration | |
| on: | |
| pull_request: | |
| types: [synchronize, opened, edited] | |
| push: | |
| env: | |
| CTEST_OUTPUT_ON_FAILURE: 1 | |
| jobs: | |
| ci: | |
| name: "${{matrix.os}} ${{matrix.compiler}} c${{matrix.c_standard}} c++${{matrix.cxx_standard}}" | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu | |
| - windows | |
| - macos | |
| compiler: | |
| - msvc | |
| - gcc | |
| - clang | |
| c_standard: | |
| - 17 | |
| - 23 | |
| cxx_standard: | |
| - 20 | |
| - 23 | |
| - 26 | |
| exclude: | |
| - compiler: msvc | |
| os: ubuntu | |
| - compiler: msvc | |
| os: macos | |
| - compiler: gcc | |
| os: windows | |
| runs-on: ${{matrix.os}}-latest | |
| env: | |
| CMAKE_CXX_STANDARD: ${{matrix.cxx_standard}} | |
| CMAKE_C_STANDARD: ${{matrix.c_standard}} | |
| steps: | |
| # important setup | |
| - uses: actions/checkout@main | |
| with: | |
| submodules: recursive | |
| - uses: humbletim/vsdevenv-shell@main | |
| if: ${{matrix.os == 'windows'}} | |
| - uses: seanmiddleditch/gha-setup-ninja@master | |
| if: ${{matrix.os == 'windows'}} | |
| # actual runs | |
| - name: Execute CMake Workflow (Windows and MSVC) | |
| if: ${{(matrix.os == 'windows' && matrix.compiler == 'msvc')}} | |
| shell: vsdevenv x64 powershell {0} | |
| run: cmake --workflow --preset ${{matrix.compiler}} | |
| - name: Execute CMake Workflow (Non-Windows and Non-MSVC) | |
| if: ${{(matrix.os != 'windows' || matrix.compiler != 'msvc')}} | |
| run: cmake --workflow --preset ${{matrix.compiler}} |