Skip to content

Commit c6d1905

Browse files
authored
python(chore): sift_stream_bindings explicitly build for 3.8 to 3.14 (#398)
1 parent e01e46b commit c6d1905

3 files changed

Lines changed: 98 additions & 3 deletions

File tree

.github/workflows/sift_stream_bindings_release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: PyO3/maturin-action@v1
2828
with:
2929
target: ${{ matrix.platform.target }}
30-
args: --release --out dist --find-interpreter
30+
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12 3.13 3.14'
3131
sccache: ${{ !startsWith(github.ref, 'refs/tags/sift-stream-bindings/') }}
3232
manylinux: auto
3333
working-directory: rust/crates/sift_stream_bindings
@@ -59,7 +59,7 @@ jobs:
5959
uses: PyO3/maturin-action@v1
6060
with:
6161
target: ${{ matrix.platform.target }}
62-
args: --release --out dist --find-interpreter
62+
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12 3.13 3.14'
6363
sccache: ${{ !startsWith(github.ref, 'refs/tags/sift-stream-bindings/') }}
6464
working-directory: rust/crates/sift_stream_bindings
6565
- name: Upload wheels
@@ -86,7 +86,7 @@ jobs:
8686
uses: PyO3/maturin-action@v1
8787
with:
8888
target: ${{ matrix.platform.target }}
89-
args: --release --out dist --find-interpreter
89+
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12 3.13 3.14'
9090
sccache: ${{ !startsWith(github.ref, 'refs/tags/sift-stream-bindings/') }}
9191
working-directory: rust/crates/sift_stream_bindings
9292
- name: Upload wheels
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: Sift Stream Bindings Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
linux:
11+
runs-on: ${{ matrix.platform.runner }}
12+
strategy:
13+
matrix:
14+
platform:
15+
- runner: ubuntu-latest
16+
target: x86_64
17+
- runner: ubuntu-latest
18+
target: aarch64
19+
- runner: ubuntu-latest
20+
target: armv7
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-python@v5
24+
with:
25+
python-version: 3.8
26+
- name: Build wheels
27+
uses: PyO3/maturin-action@v1
28+
with:
29+
target: ${{ matrix.platform.target }}
30+
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12 3.13 3.14'
31+
sccache: ${{ !startsWith(github.ref, 'refs/tags/sift-stream-bindings/') }}
32+
manylinux: auto
33+
working-directory: rust/crates/sift_stream_bindings
34+
env:
35+
# Fix ring crate cross-compilation for aarch64
36+
CFLAGS_aarch64_unknown_linux_gnu: "-D__ARM_ARCH=8"
37+
38+
windows:
39+
runs-on: ${{ matrix.platform.runner }}
40+
strategy:
41+
matrix:
42+
platform:
43+
- runner: windows-latest
44+
target: x86
45+
- runner: windows-latest
46+
target: x64
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: actions/setup-python@v5
50+
with:
51+
python-version: 3.8
52+
architecture: ${{ matrix.platform.target }}
53+
- name: Build wheels
54+
uses: PyO3/maturin-action@v1
55+
with:
56+
target: ${{ matrix.platform.target }}
57+
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12 3.13 3.14'
58+
sccache: ${{ !startsWith(github.ref, 'refs/tags/sift-stream-bindings/') }}
59+
working-directory: rust/crates/sift_stream_bindings
60+
61+
macos:
62+
runs-on: ${{ matrix.platform.runner }}
63+
strategy:
64+
matrix:
65+
platform:
66+
- runner: macos-13
67+
target: x86_64
68+
- runner: macos-14
69+
target: aarch64
70+
steps:
71+
- uses: actions/checkout@v4
72+
- uses: actions/setup-python@v5
73+
with:
74+
python-version: 3.8
75+
- name: Build wheels
76+
uses: PyO3/maturin-action@v1
77+
with:
78+
target: ${{ matrix.platform.target }}
79+
args: --release --out dist --interpreter '3.8 3.9 3.10 3.11 3.12 3.13 3.14'
80+
sccache: ${{ !startsWith(github.ref, 'refs/tags/sift-stream-bindings/') }}
81+
working-directory: rust/crates/sift_stream_bindings
82+
83+
sdist:
84+
runs-on: ubuntu-latest
85+
steps:
86+
- uses: actions/checkout@v4
87+
- name: Build sdist
88+
uses: PyO3/maturin-action@v1
89+
with:
90+
command: sdist
91+
args: --out dist
92+
working-directory: rust/crates/sift_stream_bindings
93+

python/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ classifiers = [
1616
"Programming Language :: Python :: 3.10",
1717
"Programming Language :: Python :: 3.11",
1818
"Programming Language :: Python :: 3.12",
19+
"Programming Language :: Python :: 3.13",
20+
"Programming Language :: Python :: 3.14",
1921
]
2022
maintainers = [
2123
{ name = "Sift Software Engineers", email = "engineering@siftstack.com" },

0 commit comments

Comments
 (0)