-
-
Notifications
You must be signed in to change notification settings - Fork 113
41 lines (34 loc) · 1.07 KB
/
wheels.yml
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
name: Wheel builder
on: workflow_dispatch
jobs:
build_wheels:
name: ${{ matrix.os }}, ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Setup QEMU
if: ${{ runner.os == 'Linux' }}
uses: docker/setup-qemu-action@v3
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: "cp3*-*"
CIBW_ARCHS_WINDOWS: "auto"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_ARCHS_LINUX: "x86_64 i686 aarch64"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_BEFORE_ALL_LINUX: yum install -y libusb1-devel libudev-devel || apk add --upgrade libusb-dev eudev-dev
- name: Store artifacts
uses: actions/upload-artifact@v3
with:
path: wheelhouse/*.whl