-
Notifications
You must be signed in to change notification settings - Fork 393
54 lines (48 loc) · 1.49 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
51
52
53
54
name: Build wheels
on: [push, pull_request]
jobs:
unix:
name: ${{ matrix.os }} | ${{ matrix.arch }} | ${{ matrix.python }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
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-*, cp313-*]
include:
- os: macos-13
macos_deployment_target: 13
- os: macos-14
macos_deployment_target: 14
exclude:
- os: macos-13
arch: aarch64
- os: macos-13
python: cp37-*
- os: macos-13
python: cp310-*
- os: macos-14
arch: aarch64
- os: macos-14
python: cp37-*
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.21.3
env:
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos_deployment_target }}
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.python }}
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: "pytest {project}"
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl