-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (71 loc) · 2.29 KB
/
_build_wheels.yaml
File metadata and controls
88 lines (71 loc) · 2.29 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Reusable workflow example
on:
workflow_call:
jobs:
build_wheels:
name: Build wheels
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-15-intel
cibw_arch: arm64
cibw_build: '*'
- os: windows-latest
cibw_arch: AMD64
cibw_build: '*[02468]-*'
- os: windows-latest
cibw_arch: AMD64
cibw_build: '*[13579]-*'
- os: ubuntu-latest
cibw_arch: x86_64
cibw_build: '*[02468]-*'
- os: ubuntu-latest
cibw_arch: x86_64
cibw_build: '*[13579]-*'
- os: macos-15
cibw_arch: arm64
cibw_build: 'cp310*'
cibw_settings: "setup-args='-Dpython.allow_limited_api=true'"
- os: windows-latest
cibw_arch: AMD64
cibw_build: 'cp310*'
cibw_settings: "setup-args='-Dpython.allow_limited_api=true'"
- os: ubuntu-latest
cibw_arch: x86_64
cibw_build: 'cp310*'
cibw_settings: "setup-args='-Dpython.allow_limited_api=true'"
steps:
- uses: actions/checkout@v6
- name: Restore cached Primes
id: cache
uses: actions/cache@v5
with:
path: |
~\AppData\Local\pypa\cibuildwheel\Cache
~/Library/Caches/cibuildwheel
~/.cache/cibuildwheel
key: 'cibuildwheel-${{ runner.os }}-${{ matrix.cibw_arch }}-${{ matrix.cibw_build }}'
restore-keys: |
cibuildwheel-${{ runner.os }}-${{ matrix.cibw_arch }}
- uses: pypa/[email protected]
env:
CIBW_BUILD_VERBOSITY: 1
CIBW_ARCHS: ${{ matrix.cibw_arch }}
CIBW_BUILD: ${{ matrix.cibw_build }}
CIBW_CONFIG_SETTINGS: ${{ matrix.cibw_settings }}
- run: ls ./wheelhouse/
- uses: actions/upload-artifact@v7
with:
name: 'wheels-${{ runner.os }}-${{ matrix.cibw_arch }}-${{ strategy.job-index }}'
path: ./wheelhouse/*.whl
build:
name: make pure-py wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: pipx run flit build
- uses: actions/upload-artifact@v7
with:
name: 'wheels-pure-py'
path: dist/*.whl