-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (35 loc) · 1.39 KB
/
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
name: wheels
on: workflow_dispatch
env:
# nmslib does not build on 32bit Windows
# https://cibuildwheel.readthedocs.io/en/stable/options/
# cp39-win_amd64
# cp37-win32 cp38-win32 cp39-win32
# TODO: manylinux aarch64
# TODO: macos arm64
CIBW_SKIP: cp2* pp* cp35* cp36* cp37* cp38* cp39* *-win32 *-musllinux* *-macosx_*_universal2* *win_arm64* *-manylinux_arm64 *-manylinux_i686 *-manylinux_ppc64le *-manylinux_s390x *-manylinux_aarch64
#CIBW_TEST_SKIP: "*-macosx_arm64"
#CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_ARCHS: all
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install requirements and build wheels
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade twine build wheel
python -m pip install --upgrade numpy scipy cython
python -m pip install --upgrade -r requirements.txt
python -m pip install --upgrade cibuildwheel
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl