-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (55 loc) · 1.83 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build wheels for multiple platforms
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build_wheels:
name: Build wheels for ${{ matrix.python }}-${{ matrix.platform.target }}_${{ matrix.platform.arch }} on ${{ matrix.platform.os }}
runs-on: ${{ matrix.platform.os }}
strategy:
matrix:
python: [cp38, cp39, cp310, cp311]
platform:
- os: ubuntu-latest
target: manylinux
arch: x86_64
- os: ubuntu-latest
target: musllinux
arch: x86_64
# These don't work right now - they just hang while pulling the build image from quay.
# If this doesn't resolve itself, we could try to configure different images:
# https://cibuildwheel.readthedocs.io/en/stable/options/.
#- os: ubuntu-latest
# target: manylinux
# arch: aarch64
#- os: ubuntu-latest
# target: musllinux
# arch: aarch64
- os: macos-latest
target: macosx
arch: x86_64
- os: macos-latest
target: macosx
arch: arm64
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
# Used to host cibuildwheel
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.15.0
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS: ${{ matrix.platform.arch }}
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform.target }}_${{ matrix.platform.arch }}
CIBW_BUILD_VERBOSITY: 1
- uses: actions/upload-artifact@v3
with:
name: wheels
path: ./wheelhouse/*.whl
if-no-files-found: error