diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 49537c24..49565d82 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -12,7 +12,7 @@ permissions: {} jobs: build-sdist: name: 🐍 Packaging - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 permissions: contents: read @@ -31,7 +31,7 @@ jobs: windows-2022, windows-11-arm, ] - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-cibuildwheel.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-cibuildwheel.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 with: runs-on: ${{ matrix.runs-on }} permissions: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a65bd404..058ba6e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ permissions: {} jobs: change-detection: name: 🔍 Change - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 permissions: contents: read @@ -39,7 +39,7 @@ jobs: compiler: gcc preset: debug run-on-draft: true - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-ubuntu.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-ubuntu.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 with: runs-on: ${{ matrix.runs-on }} compiler: ${{ matrix.compiler }} @@ -64,7 +64,7 @@ jobs: compiler: clang preset: debug run-on-draft: true - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-macos.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-macos.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 with: runs-on: ${{ matrix.runs-on }} compiler: ${{ matrix.compiler }} @@ -82,14 +82,14 @@ jobs: matrix: runs-on: [windows-2022, windows-11-arm] compiler: [msvc] - preset: [release-windows] + preset: [release] run-on-draft: [false] include: - runs-on: windows-2022 compiler: msvc - preset: debug-windows + preset: debug run-on-draft: true - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-windows.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-tests-windows.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 with: runs-on: ${{ matrix.runs-on }} compiler: ${{ matrix.compiler }} @@ -102,7 +102,7 @@ jobs: name: 🇨 Lint needs: change-detection if: fromJSON(needs.change-detection.outputs.run-cpp-linter) - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-linter.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-linter.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 with: build-project: true clang-version: 20 @@ -122,7 +122,7 @@ jobs: fail-fast: false matrix: runs-on: [ubuntu-24.04, ubuntu-24.04-arm, macos-26, windows-2022] - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 with: runs-on: ${{ matrix.runs-on }} permissions: @@ -132,7 +132,7 @@ jobs: name: 🐍 Coverage needs: [change-detection, python-tests] if: fromJSON(needs.change-detection.outputs.run-python-tests) - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-coverage.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-coverage.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 permissions: contents: read id-token: write @@ -141,7 +141,7 @@ jobs: name: 🐍 Lint needs: change-detection if: fromJSON(needs.change-detection.outputs.run-python-linter) - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-linter.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-linter.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 with: check-stubs: true enable-ty: true @@ -153,7 +153,7 @@ jobs: name: 🚀 CD needs: change-detection if: fromJSON(needs.change-detection.outputs.run-cd) - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 permissions: contents: read @@ -172,7 +172,7 @@ jobs: windows-2022, windows-11-arm, ] - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-cibuildwheel.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-cibuildwheel.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 with: runs-on: ${{ matrix.runs-on }} permissions: diff --git a/.github/workflows/templating.yml b/.github/workflows/templating.yml index 194d9742..00b1e89f 100644 --- a/.github/workflows/templating.yml +++ b/.github/workflows/templating.yml @@ -24,7 +24,7 @@ jobs: private-key: ${{ secrets.APP_PRIVATE_KEY }} permission-contents: write # Needed to push the templating branch permission-pull-requests: write # Needed to open the templating pull request - - uses: munich-quantum-toolkit/templates@26c7cb8534daf355596bf0a31379ba84d097c768 # v1.5.1 + - uses: munich-quantum-toolkit/templates@93e56d3f8ad374d6bef4e57591a02bb5c6c03675 # v1.5.3 with: token: ${{ steps.create-token.outputs.token }} name: Debugger diff --git a/.github/workflows/update-mqt-core.yml b/.github/workflows/update-mqt-core.yml index df276b31..01f295de 100644 --- a/.github/workflows/update-mqt-core.yml +++ b/.github/workflows/update-mqt-core.yml @@ -4,12 +4,6 @@ on: # run once a month on the first day of the month at 00:00 UTC - cron: "0 0 1 * *" workflow_dispatch: - inputs: - update-to-head: - description: "Update to the latest commit on the default branch" - type: boolean - required: false - default: false pull_request: paths: - .github/workflows/update-mqt-core.yml @@ -23,9 +17,9 @@ permissions: {} jobs: update-mqt-core: name: ⬆️ Update MQT Core - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-mqt-core-update.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-mqt-core-update.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 with: - update-to-head: ${{ github.event.inputs.update-to-head == 'true' }} + max-major-version: "3" secrets: APP_ID: ${{ secrets.APP_ID }} APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml index a8e65d73..d3fb131f 100644 --- a/.github/workflows/upstream.yml +++ b/.github/workflows/upstream.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: runs-on: [ubuntu-24.04, macos-26, windows-2022] - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-qiskit-upstream-tests.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-qiskit-upstream-tests.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 with: runs-on: ${{ matrix.runs-on }} setup-z3: true @@ -32,7 +32,7 @@ jobs: name: Create issue on failure needs: qiskit-upstream-tests if: ${{ always() }} - uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-qiskit-upstream-issue.yml@ae4c1005796fedc123c3c70cdba94ce643c9fcae # v2.3.1 + uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-qiskit-upstream-issue.yml@99af11652a4238dbe50ebe4b003a9f0fd5fb8085 # v2.4.1 with: tests-result: ${{ needs.qiskit-upstream-tests.result }} permissions: diff --git a/CMakePresets.json b/CMakePresets.json index 8768cd82..ff195f2b 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -4,42 +4,22 @@ { "name": "base", "hidden": true, - "binaryDir": "${sourceDir}/build/${presetName}" - }, - { - "name": "base-unix", - "hidden": true, - "inherits": "base", - "condition": { - "type": "inList", - "string": "${hostSystemName}", - "list": ["Linux", "Darwin"] - }, - "description": "Default configuration for Linux and macOS builds. Uses the Ninja generator", + "binaryDir": "${sourceDir}/build/${presetName}", + "description": "Default configuration. Uses the Ninja generator", "generator": "Ninja" }, - { - "name": "base-windows", - "hidden": true, - "inherits": "base", - "condition": { - "type": "equals", - "lhs": "${hostSystemName}", - "rhs": "Windows" - }, - "description": "Default configuration for Windows builds. Uses the default generator" - }, { "name": "debug", - "inherits": "base-unix", + "inherits": "base", "displayName": "Debug config", "cacheVariables": { - "CMAKE_BUILD_TYPE": "Debug" + "CMAKE_BUILD_TYPE": "Debug", + "CMAKE_MSVC_DEBUG_INFORMATION_FORMAT": "Embedded" } }, { "name": "release", - "inherits": "base-unix", + "inherits": "base", "displayName": "Release config", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" @@ -47,7 +27,7 @@ }, { "name": "coverage", - "inherits": "base-unix", + "inherits": "base", "displayName": "Coverage config", "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", @@ -56,28 +36,12 @@ }, { "name": "lint", - "inherits": "base-unix", + "inherits": "base", "displayName": "Lint config", "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", "BUILD_MQT_DEBUGGER_BINDINGS": "ON" } - }, - { - "name": "debug-windows", - "inherits": "base-windows", - "displayName": "Windows Debug config", - "cacheVariables": { - "CMAKE_BUILD_TYPE": "Debug" - } - }, - { - "name": "release-windows", - "inherits": "base-windows", - "displayName": "Windows Release config", - "cacheVariables": { - "CMAKE_BUILD_TYPE": "Release" - } } ], "buildPresets": [ @@ -96,16 +60,6 @@ { "name": "lint", "configurePreset": "lint" - }, - { - "name": "debug-windows", - "configurePreset": "debug-windows", - "configuration": "Debug" - }, - { - "name": "release-windows", - "configurePreset": "release-windows", - "configuration": "Release" } ], "testPresets": [ @@ -132,18 +86,6 @@ "name": "coverage", "inherits": "base", "configurePreset": "coverage" - }, - { - "name": "debug-windows", - "inherits": "base", - "configurePreset": "debug-windows", - "configuration": "Debug" - }, - { - "name": "release-windows", - "inherits": "base", - "configurePreset": "release-windows", - "configuration": "Release" } ] }