CI - Solvers - C++ #9
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 - Solvers - C++ | |
| on: | |
| workflow_call: | |
| inputs: | |
| packages-hash-macos: | |
| description: Hash of installed packages on MacOS | |
| required: true | |
| type: string | |
| packages-hash-ubuntu: | |
| description: Hash of installed packages on Ubuntu | |
| required: true | |
| type: string | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| # DEBUG | |
| debug-ubuntu: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Setup homebrew packages | |
| uses: ./.github/actions/homebrew-packages-setup | |
| with: | |
| cache-mode: use | |
| packages-hash-to-use: ${{ inputs.packages-hash-ubuntu }} | |
| - run: | | |
| set -x | |
| mods="$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
| eval "${mods}" | |
| echo "HOMEBREW_PREFIX=${HOMEBREW_PREFIX}" | |
| ls -la "${HOMEBREW_PREFIX}"/ || true | |
| ls -la "${HOMEBREW_PREFIX}"/opt/ || true | |
| ls -la "${HOMEBREW_PREFIX}"/opt/gcc/ || true | |
| ls -la "${HOMEBREW_PREFIX}"/opt/gcc/include/ || true | |
| ls -la "${HOMEBREW_PREFIX}"/opt/gcc/include/c++/ || true | |
| ls -la "${HOMEBREW_PREFIX}"/opt/gcc/include/c++/15/ || true | |
| shell: bash | |
| # Checks | |
| build-test-run: | |
| uses: ./.github/workflows/cpp-build-test-run.yaml | |
| with: | |
| packages-hash-macos: ${{ inputs.packages-hash-macos }} | |
| packages-hash-ubuntu: ${{ inputs.packages-hash-ubuntu }} | |
| check-clang-format: | |
| uses: ./.github/workflows/mise-task.yaml | |
| with: | |
| directory: solvers/cpp | |
| task: check:clang-format | |
| # Check for all green CI for C++ | |
| check: | |
| if: always() | |
| needs: | |
| - build-test-run | |
| - check-clang-format | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 | |
| with: | |
| jobs: ${{ toJSON(needs) }} |