Skip to content

Commit

Permalink
Add a new release github action for Python binding: macos with univer…
Browse files Browse the repository at this point in the history
…sal2 wheel (#976)

# Description
- Add a new Python binding release Github Action for `universal2` wheel
in PyPy
- Set version 1 for maturin-action

# Related Issue(s)
- closes #972 

# Documentation
- **universal2:**
This wheel contains both architectures, causing it to be up to twice the
size (data files do not get doubled, only compiled code). It requires
Pip 20.3 (Packaging 20.6+) to load on Intel, and Pip 21.0.1 (Packaging
20.9+) to load on Apple Silicon.
  • Loading branch information
fvaleye authored Nov 29, 2022
1 parent 94d2eb0 commit 6e9c2b8
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/python_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,30 @@ jobs:
- uses: actions/checkout@v3

- name: Publish to pypi (without sdist)
uses: messense/maturin-action@main
uses: messense/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
target: ${{ matrix.target }}
command: publish
args: -m python/Cargo.toml --no-sdist

release-pypi-mac-universal2:
needs: validate-release-tag
name: PyPI release on Mac universal 2
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

- name: Publish to pypi (without sdist)
uses: messense/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
target: ${{ matrix.target }}
command: publish
args: -m python/Cargo.toml --no-sdist --universal2

release-pypi-windows:
needs: validate-release-tag
name: PyPI release on Windows
Expand All @@ -51,7 +67,7 @@ jobs:
- uses: actions/checkout@v3

- name: Publish to pypi (without sdist)
uses: messense/maturin-action@main
uses: messense/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
Expand All @@ -67,7 +83,7 @@ jobs:
- uses: actions/checkout@v3

- name: Publish manylinux to pypi x86_64 (with sdist)
uses: messense/maturin-action@main
uses: messense/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
Expand All @@ -76,7 +92,7 @@ jobs:
args: -m python/Cargo.toml

- name: Publish manylinux to pypi aarch64 (without sdist)
uses: messense/maturin-action@main
uses: messense/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
Expand Down

0 comments on commit 6e9c2b8

Please sign in to comment.