Skip to content

🎨 Install All Header into Device #883

🎨 Install All Header into Device

🎨 Install All Header into Device #883

Workflow file for this run

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) }}