-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (62 loc) · 1.58 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Build Wheels
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build_sdist:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Build sdist
run: |
python -m pip install build
python -m build --sdist .
env:
SETUPTOOLS_SCM_DEBUG: 1
- name: Check sdist
run: |
python -m pip install twine
twine check dist/*
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: sdist
path: ./dist/*
build_wheels:
name: Build wheel for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-13 # Uses x64
- macos-14 # Uses Apple Silicon
include:
- os: macos-13
deployment_target: "13.0"
- os: macos-14
deployment_target: "14.0"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Build and test
uses: pypa/[email protected]
env:
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.deployment_target }}
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl