44 push :
55 tags :
66 - v*
7- pull_request :
87 branches :
98 - ' main'
109
@@ -14,18 +13,24 @@ jobs:
1413 runs-on : macos-latest
1514 strategy :
1615 matrix :
16+ python-version : ["3.10", "3.11", "3.12"]
1717 target : [x64, aarch64]
1818 steps :
19- - uses : actions/checkout@v2
19+ - uses : actions/checkout@v4
20+ - name : Set up Python ${{ matrix.python-version }}
21+ uses : actions/setup-python@v5
22+ with :
23+ python-version : ${{ matrix.python-version }}
2024 - name : Build wheels
21- uses : messense /maturin-action@v1
25+ uses : PyO3 /maturin-action@v1
2226 with :
27+ command : build
2328 target : ${{ matrix.target }}
2429 args : --release -o dist --find-interpreter
2530 - name : Upload wheels
26- uses : actions/upload-artifact@v2
31+ uses : actions/upload-artifact@v4
2732 with :
28- name : wheels
33+ name : macos- wheels-${{ matrix.python-version }}-${{matrix.target}}
2934 path : dist
3035
3136 windows :
@@ -36,14 +41,15 @@ jobs:
3641 steps :
3742 - uses : actions/checkout@v2
3843 - name : Build wheels
39- uses : messense /maturin-action@v1
44+ uses : PyO3 /maturin-action@v1
4045 with :
46+ command : build
4147 target : ${{ matrix.target }}
4248 args : --release -o dist --find-interpreter
4349 - name : Upload wheels
44- uses : actions/upload-artifact@v2
50+ uses : actions/upload-artifact@v4
4551 with :
46- name : wheels
52+ name : windows- wheels-${{ matrix.python-version }}-${{matrix.target}}
4753 path : dist
4854
4955 linux :
@@ -54,15 +60,15 @@ jobs:
5460 steps :
5561 - uses : actions/checkout@v2
5662 - name : Build Wheels
57- uses : messense /maturin-action@v1
63+ uses : PyO3 /maturin-action@v1
5864 with :
65+ command : build
5966 target : ${{ matrix.target }}
60- manylinux : auto
6167 args : --release -o dist --find-interpreter
6268 - name : Upload wheels
63- uses : actions/upload-artifact@v2
69+ uses : actions/upload-artifact@v4
6470 with :
65- name : wheels
71+ name : linux- wheels-${{ matrix.python-version }}-${{matrix.target}}
6672 path : dist
6773
6874 # TODO Add pypy
@@ -73,16 +79,17 @@ jobs:
7379 if : " startsWith(github.ref, 'refs/tags/')"
7480 needs : [ macos, linux, windows]
7581 steps :
76- - uses : actions/download-artifact@v2
82+ - uses : actions/download-artifact@v4
7783 with :
78- name : wheels
79- - uses : actions/setup-python@v2
84+ pattern : ' *'
85+ merge-multiple : true
86+ - uses : actions/setup-python@v5
8087 with :
81- python-version : 3.9
88+ python-version : 3.12
8289 - name : Publish to PyPi
8390 env :
8491 TWINE_USERNAME : __token__
85- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
92+ TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_TOKEN }}
8693 run : |
8794 pip install --upgrade twine
8895 twine upload --skip-existing *
0 commit comments