mirror of
https://github.com/gorules/zen.git
synced 2026-10-04 00:02:18 +00:00
feat: update pyo3 (#308)
* feat: update pyo3 * update workflows * python version * update minimum * update pyproject * fix pipeline
This commit is contained in:
@@ -31,13 +31,12 @@ jobs:
|
||||
working-directory: ${{ env.WORKING_DIRECTORY }}
|
||||
strategy:
|
||||
matrix:
|
||||
# target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
|
||||
target: [x86_64, aarch64]
|
||||
target: [ x86_64, aarch64 ]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.13'
|
||||
|
||||
- name: Build wheels
|
||||
uses: stefan-gorules/maturin-action@main
|
||||
@@ -50,10 +49,10 @@ jobs:
|
||||
apt install -y patch
|
||||
|
||||
- name: Upload wheels
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wheels
|
||||
path: dist
|
||||
name: wheels-linux-${{ matrix.target }}
|
||||
path: wheels
|
||||
|
||||
windows:
|
||||
runs-on: windows-latest
|
||||
@@ -62,12 +61,12 @@ jobs:
|
||||
working-directory: ${{ env.WORKING_DIRECTORY }}
|
||||
strategy:
|
||||
matrix:
|
||||
target: [x64]
|
||||
target: [ x64 ]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.13'
|
||||
architecture: ${{ matrix.target }}
|
||||
- name: Build wheels
|
||||
uses: PyO3/maturin-action@v1
|
||||
@@ -76,10 +75,10 @@ jobs:
|
||||
args: --release --out dist --find-interpreter -m bindings/python/Cargo.toml
|
||||
sccache: 'true'
|
||||
- name: Upload wheels
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wheels
|
||||
path: dist
|
||||
name: wheels-windows-${{ matrix.target }}
|
||||
path: wheels
|
||||
|
||||
macos:
|
||||
runs-on: macos-latest
|
||||
@@ -88,12 +87,12 @@ jobs:
|
||||
working-directory: ${{ env.WORKING_DIRECTORY }}
|
||||
strategy:
|
||||
matrix:
|
||||
target: [x86_64, aarch64]
|
||||
target: [ x86_64, aarch64 ]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.13'
|
||||
- name: Build wheels
|
||||
uses: PyO3/maturin-action@v1
|
||||
with:
|
||||
@@ -101,10 +100,10 @@ jobs:
|
||||
args: --release --out dist --find-interpreter -m bindings/python/Cargo.toml
|
||||
sccache: 'true'
|
||||
- name: Upload wheels
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wheels
|
||||
path: dist
|
||||
name: wheels-macos-${{ matrix.target }}
|
||||
path: wheels
|
||||
|
||||
sdist:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -113,6 +112,9 @@ jobs:
|
||||
working-directory: ${{ env.WORKING_DIRECTORY }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.13'
|
||||
|
||||
- name: Build sdist
|
||||
uses: PyO3/maturin-action@v1
|
||||
@@ -120,10 +122,10 @@ jobs:
|
||||
command: sdist
|
||||
args: --out dist -m bindings/python/Cargo.toml
|
||||
- name: Upload sdist
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wheels
|
||||
path: dist
|
||||
name: wheels-sdist
|
||||
path: wheels
|
||||
|
||||
release:
|
||||
name: Release
|
||||
@@ -131,14 +133,12 @@ jobs:
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{ env.WORKING_DIRECTORY }}
|
||||
# if: "startsWith(github.ref, 'refs/tags/')"
|
||||
needs: [linux, windows, macos, sdist]
|
||||
# needs: [linux, sdist]
|
||||
# needs: [linux]
|
||||
needs: [ linux, windows, macos, sdist ]
|
||||
steps:
|
||||
- uses: actions/download-artifact@v3
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: wheels
|
||||
path: wheels
|
||||
|
||||
- name: Publish to PyPI
|
||||
if: "startsWith(github.event.head_commit.message, 'chore(release): publish python')"
|
||||
uses: PyO3/maturin-action@v1
|
||||
|
||||
Reference in New Issue
Block a user