-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·39 lines (35 loc) · 1.05 KB
/
Copy pathbuild_wheels.yml
File metadata and controls
executable file
·39 lines (35 loc) · 1.05 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
name: Build Wheels
on:
push:
tag:
- '*'
branches:
- main
pull_request:
branches:
- main
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
CIBW_SKIP: "*-win32 *-manylinux_i686 *musllinux* cp39-win_arm64 cp310-win_arm64"
strategy:
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm, macos-15-intel, macos-14]
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Build wheels
uses: pypa/cibuildwheel@v4.1.0
# to supply options, put them in 'env', like:
env:
CIBW_SKIP: "*-win32 *-manylinux_i686 *musllinux* cp39-win_arm64 cp310-win_arm64"
CIBW_TEST_REQURES: pytest, numpy
CIBW_BEFORE_TEST: python -m pip install pytest
CIBW_TEST_COMMAND: python -m pytest {package}/tests
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl