Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ jobs:
# ----------------------------------------------------
linux-wheels:
needs: [version-bump]
if: needs.version-bump.outputs.version_changed == 'true'
runs-on: ubuntu-latest
strategy:
# Build for a range of Python versions to maximize compatibility
Expand All @@ -135,6 +136,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
ref: v${{ needs.version-bump.outputs.new_version }}
- name: Setup QEMU for ARM builds 🖥️
# Enables cross-compilation for aarch64 (ARM) systems like AWS Graviton
uses: docker/setup-qemu-action@v3
Expand All @@ -160,6 +163,7 @@ jobs:
# ----------------------------------------------------
os-wheels:
needs: [version-bump]
if: needs.version-bump.outputs.version_changed == 'true'
strategy:
matrix:
# These operating systems build the correct wheel tags natively
Expand All @@ -168,6 +172,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
ref: v${{ needs.version-bump.outputs.new_version }}
- uses: dtolnay/rust-toolchain@stable

- name: Set up Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -199,7 +205,8 @@ jobs:
pypi-publish:
runs-on: ubuntu-latest
# This job now depends on all builds being successful
needs: [linux-wheels, os-wheels]
needs: [version-bump, linux-wheels, os-wheels]
if: needs.version-bump.outputs.version_changed == 'true'

steps:
- uses: actions/checkout@v4
Expand Down
Loading