Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new release github action for Python binding: macos with universal2 wheel #976

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
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