Skip to content

Commit

Permalink
⬆️ update mqt-workflows to v1.3 (moving tag) (#504)
Browse files Browse the repository at this point in the history
## Description

This PR updates the MQT workflows to `v1.3`, which is the first version
to offer moving minor tags that should reduce the update frequency.
Furthermore, the updated workflows combine the emulated wheel jobs to
reduce overall build time and reduce the number of parallel jobs.

## Checklist:

<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->

- [x] The pull request only contains commits that are related to it.
- [x] I have added appropriate tests and documentation.
- [x] I have made sure that all CI jobs on GitHub pass.
- [x] The pull request introduces no new warnings and follows the
project's style guidelines.

Signed-off-by: burgholzer <[email protected]>
  • Loading branch information
burgholzer authored Aug 9, 2024
1 parent a3c9307 commit 70c84d1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
python-packaging:
name: 🐍 Packaging
uses: cda-tum/mqt-workflows/.github/workflows/reusable-python-packaging.yml@v1.2.1
uses: cda-tum/mqt-workflows/.github/workflows/reusable-python-packaging.yml@v1.3
with:
setup-z3: true
z3-version: 4.12.6 # 4.13.0 has incorrectly tagged manylinux wheels
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@ concurrency:
jobs:
change-detection:
name: 🔍 Change
uses: cda-tum/mqt-workflows/.github/workflows/reusable-change-detection.yml@v1.2.1
uses: cda-tum/mqt-workflows/.github/workflows/reusable-change-detection.yml@v1.3

cpp-tests:
name: 🇨‌ Test
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-cpp-tests)
uses: cda-tum/mqt-workflows/.github/workflows/reusable-cpp-ci.yml@v1.2.1
uses: cda-tum/mqt-workflows/.github/workflows/reusable-cpp-ci.yml@v1.3
with:
setup-z3: true

cpp-linter:
name: 🇨‌ Lint
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-cpp-linter)
uses: cda-tum/mqt-workflows/.github/workflows/reusable-cpp-linter.yml@v1.2.1
uses: cda-tum/mqt-workflows/.github/workflows/reusable-cpp-linter.yml@v1.3
with:
setup-z3: true

python-tests:
name: 🐍 Test
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-python-tests)
uses: cda-tum/mqt-workflows/.github/workflows/reusable-python-ci.yml@v1.2.1
uses: cda-tum/mqt-workflows/.github/workflows/reusable-python-ci.yml@v1.3
with:
skip-testing-latest-python: true
setup-z3: true
Expand All @@ -45,7 +45,7 @@ jobs:
name: 📝 CodeQL
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-code-ql)
uses: cda-tum/mqt-workflows/.github/workflows/reusable-code-ql.yml@v1.2.1
uses: cda-tum/mqt-workflows/.github/workflows/reusable-code-ql.yml@v1.3
with:
setup-z3: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-mqt-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ concurrency:
jobs:
update-mqt-core:
name: ⬆️ Update MQT Core
uses: cda-tum/mqt-workflows/.github/workflows/reusable-mqt-core-update.yml@v1.2.1
uses: cda-tum/mqt-workflows/.github/workflows/reusable-mqt-core-update.yml@v1.3
with:
update-to-head: ${{ github.event.inputs.update-to-head || false }}
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ cmake.version = ">=3.19"
ninja.version = ">=1.10"

# Setuptools-style build caching in a local directory
build-dir = "build/{wheel_tag}"
build-dir = "build/{build_type}"

# Explicitly set the package directory
wheel.packages = ["src/mqt"]
Expand Down Expand Up @@ -301,4 +301,4 @@ environment = { MACOSX_DEPLOYMENT_TARGET = "11.0" }
[tool.cibuildwheel.windows]
before-build = "pip install delvewheel>=1.7.3"
repair-wheel-command = "delvewheel repair -v -w {dest_dir} {wheel} --namespace-pkg mqt"
environment = { CMAKE_GENERATOR = "Ninja" }
environment = { CMAKE_GENERATOR = "Ninja", SKBUILD_CMAKE_ARGS="--fresh" }

0 comments on commit 70c84d1

Please sign in to comment.