-
Notifications
You must be signed in to change notification settings - Fork 14
57 lines (48 loc) · 1.77 KB
/
build_wheels.yml
File metadata and controls
57 lines (48 loc) · 1.77 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
name: (self-hosted) Build and Publish Wheels
on: workflow_dispatch
jobs:
build:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: true
matrix:
include:
- os: macOS-ARM
runner: [self-hosted, macOS, ARM64]
archs: arm64
cibw_build: cp310-macosx_arm64 cp311-macosx_arm64 cp312-macosx_arm64 cp313-macosx_arm64
- os: manylinux
runner: [self-hosted, Ubuntu, Native]
archs: auto
cibw_build: cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64 cp313-manylinux_x86_64
- os: windows
runner: [self-hosted, Windows]
archs: auto
cibw_build: cp310-win_amd64 cp311-win_amd64 cp312-win_amd64 cp313-win_amd64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10" # Works as bootstrap for cibuildwheel
- name: Install cibuildwheel and nox
run: |
python -m pip install --upgrade pip
python -m pip install cibuildwheel==2.21.3
python -m pip install nox
- name: Build sdist (only on Windows)
if: matrix.os == 'windows'
run: python -m nox --sessions build_sdist
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: ${{ matrix.cibw_build }}
CIBW_ARCHS: ${{ matrix.archs }}
MACOSX_DEPLOYMENT_TARGET: "14.0"
- name: Test wheels (only on macOS ARM64)
if: matrix.os == 'macOS-ARM'
run: python -m nox --sessions test_wheel
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/*