-
Notifications
You must be signed in to change notification settings - Fork 75
50 lines (49 loc) · 1.4 KB
/
run-cibuildwheel.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
on:
workflow_call:
inputs:
fail-fast:
description: Whether the wheel build should stop and fail as soon as any job fails.
required: false
default: false
type: boolean
prerelease-pythons:
description: Whether the wheels should be built for pre-release Pythons that are not ABI stable yet.
required: false
default: false
type: boolean
jobs:
build_wheels:
name: Build wheels for ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: ${{ inputs.fail-fast }}
matrix:
include:
- name: Windows
os: windows-latest
- name: macOS x86_64
os: macos-13
- name: macOS arm64
os: macos-latest
- name: Linux
os: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Enable CPython prerelease
if: ${{ inputs.prerelease-pythons }}
run: echo "CIBW_ENABLE=cpython-prerelease" >> $GITHUB_ENV
- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
with:
output-dir: dist
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: dist/*.whl