From 80f8eac68230d3418b6a4b2fb3b09b3bd59e8f86 Mon Sep 17 00:00:00 2001 From: fvaleye Date: Tue, 29 Nov 2022 09:46:51 +0100 Subject: [PATCH] Add a new release github action for Python binding: macos with universal2 wheel --- .github/workflows/python_release.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python_release.yml b/.github/workflows/python_release.yml index 7ac4e3b106..8f1edfbbe0 100644 --- a/.github/workflows/python_release.yml +++ b/.github/workflows/python_release.yml @@ -35,7 +35,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: @@ -43,6 +43,22 @@ jobs: 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 @@ -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: @@ -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: @@ -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: