Skip to content
42 changes: 23 additions & 19 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,33 @@ permissions:
id-token: write

jobs:
# Builds the sdist and wheels on all supported platforms and uploads the resulting
# wheels as GitHub artifacts `dev-cibw-*` or `cibw-*`, depending on whether the
# workflow is triggered from a PR or a release, respectively.
python-packaging:
build-sdist:
name: 🐍 Packaging
uses: munich-quantum-toolkit/workflows/.github/workflows/[email protected]
uses: munich-quantum-toolkit/workflows/.github/workflows/[email protected]

# Builds wheels on all supported platforms using cibuildwheel.
# The wheels are uploaded as GitHub artifacts `dev-cibw-*` or `cibw-*`, depending on whether
# the workflow is triggered from a PR or a release, respectively.
build-wheel:
name: 🐍 Packaging
strategy:
fail-fast: false
matrix:
runs-on:
[
ubuntu-24.04,
ubuntu-24.04-arm,
macos-13,
macos-14,
windows-2022,
windows-11-arm,
]
uses: munich-quantum-toolkit/workflows/.github/workflows/[email protected]
with:
# Make sure Z3 is available
runs-on: ${{ matrix.runs-on }}
setup-z3: true
# 4.13.0 has incorrectly tagged manylinux wheels
z3-version: 4.12.6
# Runs to enable
enable-ubuntu2404: true
enable-ubuntu2404-arm: true
enable-macos13: true
enable-macos14: true
enable-windows2022: true
enable-windows11-arm: true
# Runs to disable
enable-ubuntu2204: false
enable-ubuntu2204-arm: false
enable-macos15: false
enable-windows2025: false

# Downloads the previously generated artifacts and deploys to PyPI on published releases.
deploy:
Expand All @@ -42,7 +46,7 @@ jobs:
environment:
name: pypi
url: https://pypi.org/p/mqt.qmap
needs: [python-packaging]
needs: [build-sdist, build-wheel]
steps:
- uses: actions/download-artifact@v4
with:
Expand Down
Loading
Loading