Skip to content

Commit 642e73c

Browse files
committed
try new maturin build
1 parent 6cee5e9 commit 642e73c

3 files changed

Lines changed: 178 additions & 278 deletions

File tree

.github/workflows/CI.yml

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
# This file is autogenerated by maturin v1.8.3
2+
# To update, run
3+
#
4+
# maturin generate-ci github
5+
#
6+
name: CI
7+
8+
on:
9+
push:
10+
tags:
11+
- '*'
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
linux:
18+
runs-on: ${{ matrix.platform.runner }}
19+
strategy:
20+
matrix:
21+
platform:
22+
- runner: ubuntu-22.04
23+
target: x86_64
24+
- runner: ubuntu-22.04
25+
target: x86
26+
- runner: ubuntu-22.04
27+
target: aarch64
28+
- runner: ubuntu-22.04
29+
target: armv7
30+
- runner: ubuntu-22.04
31+
target: s390x
32+
- runner: ubuntu-22.04
33+
target: ppc64le
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: actions/setup-python@v5
37+
with:
38+
python-version: 3.x
39+
- name: Build wheels
40+
uses: PyO3/maturin-action@v1
41+
with:
42+
target: ${{ matrix.platform.target }}
43+
args: --release --out dist --find-interpreter
44+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
45+
manylinux: auto
46+
- name: Upload wheels
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: wheels-linux-${{ matrix.platform.target }}
50+
path: dist
51+
52+
musllinux:
53+
runs-on: ${{ matrix.platform.runner }}
54+
strategy:
55+
matrix:
56+
platform:
57+
- runner: ubuntu-22.04
58+
target: x86_64
59+
- runner: ubuntu-22.04
60+
target: x86
61+
- runner: ubuntu-22.04
62+
target: aarch64
63+
- runner: ubuntu-22.04
64+
target: armv7
65+
steps:
66+
- uses: actions/checkout@v4
67+
- uses: actions/setup-python@v5
68+
with:
69+
python-version: 3.x
70+
- name: Build wheels
71+
uses: PyO3/maturin-action@v1
72+
with:
73+
target: ${{ matrix.platform.target }}
74+
args: --release --out dist --find-interpreter
75+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
76+
manylinux: musllinux_1_2
77+
- name: Upload wheels
78+
uses: actions/upload-artifact@v4
79+
with:
80+
name: wheels-musllinux-${{ matrix.platform.target }}
81+
path: dist
82+
83+
windows:
84+
runs-on: ${{ matrix.platform.runner }}
85+
strategy:
86+
matrix:
87+
platform:
88+
- runner: windows-latest
89+
target: x64
90+
- runner: windows-latest
91+
target: x86
92+
steps:
93+
- uses: actions/checkout@v4
94+
- uses: actions/setup-python@v5
95+
with:
96+
python-version: 3.x
97+
architecture: ${{ matrix.platform.target }}
98+
- name: Build wheels
99+
uses: PyO3/maturin-action@v1
100+
with:
101+
target: ${{ matrix.platform.target }}
102+
args: --release --out dist --find-interpreter
103+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
104+
- name: Upload wheels
105+
uses: actions/upload-artifact@v4
106+
with:
107+
name: wheels-windows-${{ matrix.platform.target }}
108+
path: dist
109+
110+
macos:
111+
runs-on: ${{ matrix.platform.runner }}
112+
strategy:
113+
matrix:
114+
platform:
115+
- runner: macos-13
116+
target: x86_64
117+
- runner: macos-14
118+
target: aarch64
119+
steps:
120+
- uses: actions/checkout@v4
121+
- uses: actions/setup-python@v5
122+
with:
123+
python-version: 3.x
124+
- name: Build wheels
125+
uses: PyO3/maturin-action@v1
126+
with:
127+
target: ${{ matrix.platform.target }}
128+
args: --release --out dist --find-interpreter
129+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
130+
- name: Upload wheels
131+
uses: actions/upload-artifact@v4
132+
with:
133+
name: wheels-macos-${{ matrix.platform.target }}
134+
path: dist
135+
136+
sdist:
137+
runs-on: ubuntu-latest
138+
steps:
139+
- uses: actions/checkout@v4
140+
- name: Build sdist
141+
uses: PyO3/maturin-action@v1
142+
with:
143+
command: sdist
144+
args: --out dist
145+
- name: Upload sdist
146+
uses: actions/upload-artifact@v4
147+
with:
148+
name: wheels-sdist
149+
path: dist
150+
151+
release:
152+
name: Release
153+
runs-on: ubuntu-latest
154+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
155+
needs: [linux, musllinux, windows, macos, sdist]
156+
permissions:
157+
# Use to sign the release artifacts
158+
id-token: write
159+
# Used to upload release artifacts
160+
contents: write
161+
# Used to generate artifact attestation
162+
attestations: write
163+
steps:
164+
- uses: actions/download-artifact@v4
165+
- name: Generate artifact attestation
166+
uses: actions/attest-build-provenance@v2
167+
with:
168+
subject-path: 'wheels-*/*'
169+
- name: Publish to PyPI
170+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
171+
uses: PyO3/maturin-action@v1
172+
env:
173+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
174+
with:
175+
command: upload
176+
args: --non-interactive --skip-existing wheels-*/*

.github/workflows/dist.yml

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)