-
Notifications
You must be signed in to change notification settings - Fork 393
50 lines (44 loc) · 1.38 KB
/
build_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
42
43
44
45
46
47
48
49
50
name: Build wheels
on: [push, pull_request]
jobs:
unix:
name: ${{ matrix.os }} | ${{ matrix.arch }} | ${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, macos-13, macos-14]
arch: [auto, aarch64]
python: [cp37-*, cp38-*, cp39-*, cp310-*, cp311-*, cp312-*,
pp37-*, pp38-*, pp39-*, pp310-*]
include:
- os: macos-13
macos_deployment_target: 13
- os: macos-14
macos_deployment_target: 14
exclude:
- os: macos-13
arch: aarch64
- os: macos-14
arch: aarch64
- os: macos-14
python: cp37-*
- os: macos-14
python: pp37-*
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Build wheels
uses: pypa/cibuildwheel@v2.19.2
env:
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos_deployment_target }}
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.python }}
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl