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
  • Loading branch information
fvaleye committed Nov 29, 2022
1 parent 94d2eb0 commit 80f8eac
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 80f8eac

Please sign in to comment.