π¨ Install All Header into Device #872
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 | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - closed | |
| merge_group: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| change-detection: | |
| name: π Change | |
| uses: ./.github/workflows/reusable-change-detection.yml | |
| tests: | |
| name: π¨β Test | |
| needs: change-detection | |
| if: fromJSON(needs.change-detection.outputs.run-tests) && github.event.action != 'closed' | |
| permissions: | |
| contents: read | |
| id-token: write | |
| uses: ./.github/workflows/reusable-cpp-ci.yml | |
| with: | |
| # do not try to build docs in test builds | |
| cmake-args: "-DBUILD_QDMI_DOCS=OFF -G Ninja" | |
| secrets: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| linter: | |
| name: π¨β Lint | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| needs: change-detection | |
| if: fromJSON(needs.change-detection.outputs.run-linter) && github.event.action != 'closed' | |
| uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-linter.yml@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11 | |
| with: | |
| clang-version: 21 | |
| cpp-linter-extra-args: "-std=c++20" | |
| # do not try to build docs in linter builds | |
| cmake-args: "-DBUILD_QDMI_DOCS=OFF" | |
| template: | |
| name: ποΈ Build and Test Templates | |
| needs: change-detection | |
| if: fromJSON(needs.change-detection.outputs.run-template) && github.event.action != 'closed' | |
| uses: ./.github/workflows/reusable-template-ci.yml | |
| docs: | |
| name: π Build and Deploy Docs | |
| needs: change-detection | |
| if: fromJSON(needs.change-detection.outputs.run-docs) | |
| uses: ./.github/workflows/reusable-docs.yml | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| required-checks-pass: # This job does nothing and is only used for branch protection | |
| name: π¦ Check | |
| if: always() | |
| needs: | |
| - change-detection | |
| - tests | |
| - linter | |
| - docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Decide whether the needed jobs succeeded or failed | |
| uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 | |
| with: | |
| allowed-skips: >- | |
| ${{ | |
| fromJSON(needs.change-detection.outputs.run-tests) | |
| && '' || 'tests,' | |
| }} ${{ | |
| fromJSON(needs.change-detection.outputs.run-linter) | |
| && '' || 'linter,' | |
| }} ${{ | |
| fromJSON(needs.change-detection.outputs.run-template) | |
| && '' || 'template,' | |
| }} ${{ | |
| fromJSON(needs.change-detection.outputs.run-docs) | |
| && '' || 'docs,' | |
| }} | |
| jobs: ${{ toJSON(needs) }} |