1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build Python Package
on:
pull_request:
types:
paths:
- 'python/**'
push:
branches:
- main
paths:
- 'python/**'
jobs:
build-wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
# Linux
- os: ubuntu-latest
target: x86_64
manylinux: auto
# - os: ubuntu-latest
# target: aarch64
# manylinux: auto
# # Windows
# - os: windows-latest
# target: x64
# manylinux: false
# - os: windows-latest
# target: x86
# manylinux: false
# # macOS
# - os: macos-latest
# target: x86_64
# manylinux: false
# - os: macos-14
# target: aarch64
# manylinux: false
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build wheels (CPython only)
uses: PyO3/maturin-action@v1
env:
# Ensure PyO3 doesn't try to use PyPy
PYO3_CROSS_PYTHON_VERSION: "3.11"
with:
target: ${{ matrix.target }}
args: --release --out dist --features python --interpreter python3.11
sccache: 'true'
manylinux: ${{ matrix.manylinux }}
rust-toolchain: stable
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ matrix.target }}
path: dist