-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI debug] Matrix out across os x python
- letting cibuildwheel handle the python version matrixing breaks - manually doing it and the dependency resolution gives more fine grained control - modeled after scikit-image: https://github.com/scikit-learn/scikit-learn/blob/7eb7effae192f8fa9e29e14507970f5a7da6088c/.github/workflows/wheels.yml
- Loading branch information
Showing
1 changed file
with
92 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,110 @@ | ||
name: meiosis | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, reopened, synchronize, ready_for_review, review_requested] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-13, macos-14] | ||
# let some wheels complete even if others fail | ||
fail-fast: false | ||
matrix: | ||
include: | ||
|
||
- os: ubuntu-latest | ||
platform_id: manylinux_x86_64 | ||
manylinux_image: manylinux2014 | ||
python_version: '3.8' | ||
python: 38 | ||
- os: ubuntu-latest | ||
platform_id: manylinux_x86_64 | ||
manylinux_image: manylinux2014 | ||
python_version: '3.9' | ||
python: 39 | ||
- os: ubuntu-latest | ||
platform_id: manylinux_x86_64 | ||
manylinux_image: manylinux2014 | ||
python_version: '3.10' | ||
python: 310 | ||
|
||
- os: windows-latest | ||
platform_id: win_amd64 | ||
python_version: '3.8' | ||
python: 38 | ||
- os: windows-latest | ||
platform_id: win_amd64 | ||
python_version: '3.9' | ||
python: 39 | ||
- os: windows-latest | ||
platform_id: win_amd64 | ||
python_version: '3.10' | ||
python: 310 | ||
|
||
# macos x86_64 (intel) | ||
- os: macos-12 | ||
platform_id: macosx_x86_64 | ||
python_version: '3.8' | ||
python: 38 | ||
- os: macos-12 | ||
platform_id: macosx_x86_64 | ||
python_version: '3.9' | ||
python: 39 | ||
- os: macos-12 | ||
platform_id: macosx_x86_64 | ||
python_version: '3.10' | ||
python: 310 | ||
|
||
# macos arm64 (apple silicon) | ||
- os: macos-14 | ||
platform_id: macosx_arm64 | ||
python_version: '3.8' | ||
python: 38 | ||
- os: macos-14 | ||
platform_id: macosx_arm64 | ||
python_version: '3.9' | ||
python: 39 | ||
- os: macos-14 | ||
platform_id: macosx_arm64 | ||
python_version: '3.10' | ||
python: 310 | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Python | ||
|
||
- name: Setup Python ${{ matrix.python_version }} | ||
uses: actions/setup-python@v5 | ||
# - name: Installation | ||
# run: | ||
# | | ||
# python -m pip install --upgrade pip | ||
# pip install "cython<3.0" | ||
# pip install "numpy<2" | ||
# pip install -e . | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
|
||
- name: Installation | ||
run: | ||
| | ||
python -m pip install --upgrade pip | ||
pip install "cython<3.0" | ||
pip install "numpy<2" | ||
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 | ||
# env: | ||
# - CIBW_BUILD: cp38-* cp39-* cp310-* | ||
# - CIBW_SKIP: "*-win32" | ||
env: | ||
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }} | ||
CIBW_ARCHS: all | ||
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_image }} | ||
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux_image }} | ||
|
||
- uses: actions/upload-artifact@v4 | ||
|
||
- name: Store artifacts | ||
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] | ||
|