-
Notifications
You must be signed in to change notification settings - Fork 35
44 lines (41 loc) · 1.17 KB
/
publish.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
jobs:
build:
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9, 3.10]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
runs-on: {{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Installation
run:
|
python -m pip install --upgrade pip
pip install "cython<3.0"
pip install "numpy<2"
python3 setup.py install
pip install -e .
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.19.2
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
name: meiosis
on:
push:
branches:
- master
pull_request:
types: [opened, reopened, synchronize, ready_for_review, review_requested]