@@ -9,71 +9,71 @@ permissions:
99 contents : read
1010
1111jobs :
12- # linux:
13- # runs-on: ${{ matrix.platform.runner }}
14- # strategy:
15- # matrix:
16- # platform:
17- # - runner: ubuntu-latest
18- # target: x86_64
19- # - runner: ubuntu-latest
20- # target: x86
21- # - runner: ubuntu-latest
22- # target: aarch64
23- # - runner: ubuntu-latest
24- # target: armv7
25- # - runner: ubuntu-latest
26- # target: s390x
27- # - runner: ubuntu-latest
28- # target: ppc64le
29- # steps:
30- # - uses: actions/checkout@v4
31- # - uses: actions/setup-python@v5
32- # with:
33- # python-version: 3.x
34- # - name: Build wheels
35- # uses: PyO3/maturin-action@v1
36- # with:
37- # target: ${{ matrix.platform.target }}
38- # args: --release --out dist --find-interpreter
39- # sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
40- # manylinux: auto
41- # - name: Upload wheels
42- # uses: actions/upload-artifact@v4
43- # with:
44- # name: wheels-linux-${{ matrix.platform.target }}
45- # path: dist
12+ linux :
13+ runs-on : ${{ matrix.platform.runner }}
14+ strategy :
15+ matrix :
16+ platform :
17+ - runner : ubuntu-latest
18+ target : x86_64
19+ - runner : ubuntu-latest
20+ target : x86
21+ - runner : ubuntu-latest
22+ target : aarch64
23+ - runner : ubuntu-latest
24+ target : armv7
25+ - runner : ubuntu-latest
26+ target : s390x
27+ - runner : ubuntu-latest
28+ target : ppc64le
29+ steps :
30+ - uses : actions/checkout@v4
31+ - uses : actions/setup-python@v5
32+ with :
33+ python-version : 3.x
34+ - name : Build wheels
35+ uses : PyO3/maturin-action@v1
36+ with :
37+ target : ${{ matrix.platform.target }}
38+ args : --release --out dist --find-interpreter
39+ sccache : ${{ !startsWith(github.ref, 'refs/tags/') }}
40+ manylinux : auto
41+ - name : Upload wheels
42+ uses : actions/upload-artifact@v4
43+ with :
44+ name : wheels-linux-${{ matrix.platform.target }}
45+ path : dist
4646
47- # musllinux:
48- # runs-on: ${{ matrix.platform.runner }}
49- # strategy:
50- # matrix:
51- # platform:
52- # - runner: ubuntu-latest
53- # target: x86_64
54- # - runner: ubuntu-latest
55- # target: x86
56- # - runner: ubuntu-latest
57- # target: aarch64
58- # - runner: ubuntu-latest
59- # target: armv7
60- # steps:
61- # - uses: actions/checkout@v4
62- # - uses: actions/setup-python@v5
63- # with:
64- # python-version: 3.x
65- # - name: Build wheels
66- # uses: PyO3/maturin-action@v1
67- # with:
68- # target: ${{ matrix.platform.target }}
69- # args: --release --out dist --find-interpreter
70- # sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
71- # manylinux: musllinux_1_2
72- # - name: Upload wheels
73- # uses: actions/upload-artifact@v4
74- # with:
75- # name: wheels-musllinux-${{ matrix.platform.target }}
76- # path: dist
47+ musllinux :
48+ runs-on : ${{ matrix.platform.runner }}
49+ strategy :
50+ matrix :
51+ platform :
52+ - runner : ubuntu-latest
53+ target : x86_64
54+ - runner : ubuntu-latest
55+ target : x86
56+ - runner : ubuntu-latest
57+ target : aarch64
58+ - runner : ubuntu-latest
59+ target : armv7
60+ steps :
61+ - uses : actions/checkout@v4
62+ - uses : actions/setup-python@v5
63+ with :
64+ python-version : 3.x
65+ - name : Build wheels
66+ uses : PyO3/maturin-action@v1
67+ with :
68+ target : ${{ matrix.platform.target }}
69+ args : --release --out dist --find-interpreter
70+ sccache : ${{ !startsWith(github.ref, 'refs/tags/') }}
71+ manylinux : musllinux_1_2
72+ - name : Upload wheels
73+ uses : actions/upload-artifact@v4
74+ with :
75+ name : wheels-musllinux-${{ matrix.platform.target }}
76+ path : dist
7777
7878 windows :
7979 runs-on : ${{ matrix.platform.runner }}
8282 platform :
8383 - runner : windows-latest
8484 target : x64
85- # - runner: windows-latest
86- # target: x86
85+ - runner : windows-latest
86+ target : x86
8787 steps :
8888 - uses : actions/checkout@v4
8989 - uses : actions/setup-python@v5
@@ -102,31 +102,31 @@ jobs:
102102 name : wheels-windows-${{ matrix.platform.target }}
103103 path : dist
104104
105- # macos:
106- # runs-on: ${{ matrix.platform.runner }}
107- # strategy:
108- # matrix:
109- # platform:
110- # - runner: macos-13
111- # target: x86_64
112- # - runner: macos-14
113- # target: aarch64
114- # steps:
115- # - uses: actions/checkout@v4
116- # - uses: actions/setup-python@v5
117- # with:
118- # python-version: 3.x
119- # - name: Build wheels
120- # uses: PyO3/maturin-action@v1
121- # with:
122- # target: ${{ matrix.platform.target }}
123- # args: --release --out dist --find-interpreter
124- # sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
125- # - name: Upload wheels
126- # uses: actions/upload-artifact@v4
127- # with:
128- # name: wheels-macos-${{ matrix.platform.target }}
129- # path: dist
105+ macos :
106+ runs-on : ${{ matrix.platform.runner }}
107+ strategy :
108+ matrix :
109+ platform :
110+ - runner : macos-13
111+ target : x86_64
112+ - runner : macos-14
113+ target : aarch64
114+ steps :
115+ - uses : actions/checkout@v4
116+ - uses : actions/setup-python@v5
117+ with :
118+ python-version : 3.x
119+ - name : Build wheels
120+ uses : PyO3/maturin-action@v1
121+ with :
122+ target : ${{ matrix.platform.target }}
123+ args : --release --out dist --find-interpreter
124+ sccache : ${{ !startsWith(github.ref, 'refs/tags/') }}
125+ - name : Upload wheels
126+ uses : actions/upload-artifact@v4
127+ with :
128+ name : wheels-macos-${{ matrix.platform.target }}
129+ path : dist
130130
131131 sdist :
132132 runs-on : ubuntu-latest
@@ -146,9 +146,7 @@ jobs:
146146 release :
147147 name : Release
148148 runs-on : ubuntu-latest
149- # if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
150- # needs: [linux, musllinux, windows, macos, sdist]
151- needs : [windows, sdist]
149+ needs : [linux, musllinux, windows, macos, sdist]
152150 environment : pypi
153151 permissions :
154152 # Use to sign the release artifacts
@@ -164,7 +162,6 @@ jobs:
164162 with :
165163 subject-path : ' wheels-*/*'
166164 - name : Publish to PyPI
167- # if: ${{ startsWith(github.ref, 'refs/tags/') }}
168165 uses : PyO3/maturin-action@v1
169166 with :
170167 command : upload
0 commit comments