-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (32 loc) · 1.06 KB
/
build.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
name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
name: Install Python
with:
python-version: '3.10'
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel
- name: Build wheels
run: |
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BEFORE_BUILD: pip install cython
# Skip Python 2.7 and 3.5, 32 bit Linux, and PyPy
CIBW_SKIP: cp27-* cp35-* *-manylinux_i686 *musllinux* pp*
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"
CIBW_REPAIR_WHEEL_COMMAND_LINUX: auditwheel repair --strip -w {dest_dir} {wheel}
CIBW_TEST_COMMAND: python -m spherogram.test
- uses: actions/upload-artifact@v3
with:
name: spherogram_wheels
path: ./wheelhouse/*.whl