Skip to content

Commit 3ce29fb

Browse files
Create python.yml
1 parent 6f55c1a commit 3ce29fb

File tree

1 file changed

+117
-0
lines changed

1 file changed

+117
-0
lines changed

.github/workflows/python.yml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# This file is autogenerated by maturin v1.8.2
2+
# To update, run
3+
#
4+
# maturin generate-ci github
5+
#
6+
name: python-bindings-build-ci
7+
8+
on: [push, pull_request]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
linux:
15+
runs-on: ${{ matrix.platform.runner }}
16+
strategy:
17+
matrix:
18+
platform:
19+
- runner: ubuntu-22.04
20+
target: x86_64
21+
- runner: ubuntu-22.04
22+
target: x86
23+
- runner: ubuntu-22.04
24+
target: aarch64
25+
- runner: ubuntu-22.04
26+
target: armv7
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-python@v5
30+
with:
31+
python-version: 3.x
32+
- name: Build wheels
33+
uses: PyO3/maturin-action@v1
34+
with:
35+
target: ${{ matrix.platform.target }}
36+
args: --release --out dist --find-interpreter
37+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
38+
manylinux: auto
39+
40+
musllinux:
41+
runs-on: ${{ matrix.platform.runner }}
42+
strategy:
43+
matrix:
44+
platform:
45+
- runner: ubuntu-22.04
46+
target: x86_64
47+
- runner: ubuntu-22.04
48+
target: x86
49+
- runner: ubuntu-22.04
50+
target: aarch64
51+
- runner: ubuntu-22.04
52+
target: armv7
53+
steps:
54+
- uses: actions/checkout@v4
55+
- uses: actions/setup-python@v5
56+
with:
57+
python-version: 3.x
58+
- name: Build wheels
59+
uses: PyO3/maturin-action@v1
60+
with:
61+
target: ${{ matrix.platform.target }}
62+
args: --release --out dist --find-interpreter
63+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
64+
manylinux: musllinux_1_2
65+
66+
windows:
67+
runs-on: ${{ matrix.platform.runner }}
68+
strategy:
69+
matrix:
70+
platform:
71+
- runner: windows-latest
72+
target: x64
73+
- runner: windows-latest
74+
target: x86
75+
steps:
76+
- uses: actions/checkout@v4
77+
- uses: actions/setup-python@v5
78+
with:
79+
python-version: 3.x
80+
architecture: ${{ matrix.platform.target }}
81+
- name: Build wheels
82+
uses: PyO3/maturin-action@v1
83+
with:
84+
target: ${{ matrix.platform.target }}
85+
args: --release --out dist --find-interpreter
86+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
87+
88+
macos:
89+
runs-on: ${{ matrix.platform.runner }}
90+
strategy:
91+
matrix:
92+
platform:
93+
- runner: macos-13
94+
target: x86_64
95+
- runner: macos-14
96+
target: aarch64
97+
steps:
98+
- uses: actions/checkout@v4
99+
- uses: actions/setup-python@v5
100+
with:
101+
python-version: 3.x
102+
- name: Build wheels
103+
uses: PyO3/maturin-action@v1
104+
with:
105+
target: ${{ matrix.platform.target }}
106+
args: --release --out dist --find-interpreter
107+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
108+
109+
sdist:
110+
runs-on: ubuntu-latest
111+
steps:
112+
- uses: actions/checkout@v4
113+
- name: Build sdist
114+
uses: PyO3/maturin-action@v1
115+
with:
116+
command: sdist
117+
args: --out dist

0 commit comments

Comments
 (0)