-
Notifications
You must be signed in to change notification settings - Fork 29
59 lines (47 loc) · 1.43 KB
/
Copy pathcibuildswheels.yml
File metadata and controls
59 lines (47 loc) · 1.43 KB
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
name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: checkout submodules
run: git submodule update --init --recursive
# Used to host cibuildwheel
- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS: auto64
CIBW_ARCHS_MACOS: universal2
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-*"
CIBW_SKIP: "*musllinux*"
# Use uv for faster builds
CIBW_BUILD_FRONTEND: "build[uv]"
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl
merge-artifacts:
needs: build_wheels
runs-on: ubuntu-latest
steps:
- name: Download all wheel artifacts
uses: actions/download-artifact@v4
with:
path: ./dist
- name: List downloaded wheels
run: ls -R ./dist
- name: Upload merged wheels
uses: actions/upload-artifact@v4
with:
name: wheels-merged
path: ./dist/**/*.whl