Skip to content

Commit

Permalink
pyo3: update python wheel build job
Browse files Browse the repository at this point in the history
  • Loading branch information
Esgrove committed Dec 16, 2024
1 parent 2d63783 commit fe81250
Showing 1 changed file with 47 additions and 2 deletions.
49 changes: 47 additions & 2 deletions .github/workflows/python-wheel.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is generated by maturin v1.7.4
# This file is autogenerated by maturin v1.7.8
# To update, run
#
# maturin generate-ci github --output ../.github/workflows/python-wheel.yml
Expand Down Expand Up @@ -50,6 +50,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -60,7 +61,21 @@ jobs:
--find-interpreter
--manifest-path python-pyo3/Cargo.toml
--zig
sccache: true
manylinux: auto

- name: Build free-threaded wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: |
--release
--out dist
--interpreter python3.13t
--manifest-path python-pyo3/Cargo.toml
sccache: true
manylinux: auto

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -83,6 +98,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -94,6 +110,19 @@ jobs:
--manifest-path python-pyo3/Cargo.toml
sccache: true
manylinux: musllinux_1_2

- name: Build free-threaded wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: |
--release
--out dist
--interpreter python3.13t
--manifest-path python-pyo3/Cargo.toml
sccache: true
manylinux: musllinux_1_2

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -115,6 +144,7 @@ jobs:
with:
python-version: 3.x
architecture: ${{ matrix.platform.target }}

- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -125,6 +155,18 @@ jobs:
--find-interpreter
--manifest-path python-pyo3/Cargo.toml
sccache: true

- name: Build free-threaded wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: |
--release
--out dist
--interpreter python3.13t
--manifest-path python-pyo3/Cargo.toml
sccache: true

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -145,6 +187,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -155,6 +198,7 @@ jobs:
--find-interpreter
--manifest-path python-pyo3/Cargo.toml
sccache: true

- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand All @@ -170,6 +214,7 @@ jobs:
with:
command: sdist
args: --out dist --manifest-path python-pyo3/Cargo.toml

- name: Upload sdist
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -198,7 +243,7 @@ jobs:
subject-path: "wheels-*/*"

- name: Publish to PyPI
if: "startsWith(github.ref, 'refs/tags/python')"
if: ${{ startsWith(github.ref, 'refs/tags/python') }}
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
Expand Down

0 comments on commit fe81250

Please sign in to comment.