Skip to content

Commit

Permalink
Add workflow to build wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodar01 committed Jul 22, 2024
1 parent 1a061ac commit 873c6c3
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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]

0 comments on commit 873c6c3

Please sign in to comment.