P2 update F2025 #1663
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: CMake Build Matrix | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| env: | |
| BUILD_TYPE: Debug | |
| jobs: | |
| build: | |
| name: ${{ matrix.config.name }} | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { | |
| name: "Ubuntu 24.04 GCC", | |
| os: "ubuntu-24.04", | |
| cc: "/usr/bin/gcc", | |
| cxx: "/usr/bin/g++", | |
| format: "/usr/bin/clang-format-15", | |
| tidy: "/usr/bin/clang-tidy-15", | |
| } | |
| - { | |
| name: "Ubuntu 24.04 Clang", | |
| os: "ubuntu-24.04", | |
| cc: "/usr/bin/clang-15", | |
| cxx: "/usr/bin/clang++-15", | |
| format: "/usr/bin/clang-format-15", | |
| tidy: "/usr/bin/clang-tidy-15", | |
| } | |
| - { | |
| name: "macOS 14 (Sonoma) AppleClang", | |
| os: macos-14, | |
| format: "/opt/homebrew/opt/llvm@15/bin/clang-format", | |
| tidy: "/opt/homebrew/opt/llvm@15/bin/clang-tidy", | |
| } | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Print env | |
| run: | | |
| echo github.event.action: ${{ github.event.action }} | |
| echo github.event_name: ${{ github.event_name }} | |
| - name: Install Dependencies (Ubuntu) | |
| if: runner.os == 'Linux' | |
| working-directory: ${{github.workspace}} | |
| run: sudo bash ./build_support/packages.sh -y | |
| - name: Install Dependencies (macOS) | |
| if: runner.os == 'macOS' | |
| working-directory: ${{github.workspace}} | |
| run: bash ./build_support/packages.sh -y | |
| - name: Configure CMake | |
| run: CC=${{matrix.config.cc}} CXX=${{matrix.config.cxx}} cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCLANG_FORMAT_BIN=${{matrix.config.format}} -DCLANG_TIDY_BIN=${{matrix.config.tidy}} | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
| - name: Check Format | |
| working-directory: ${{github.workspace}}/build | |
| run: make check-format | |
| - name: Check Lint | |
| working-directory: ${{github.workspace}}/build | |
| run: make check-lint | |
| - name: Check Clang Tidy | |
| working-directory: ${{github.workspace}}/build | |
| run: make check-clang-tidy | |
| - name: Check Tests | |
| working-directory: ${{github.workspace}}/build | |
| run: make build-tests && make check-public-ci-tests |