github actions: separate strategy matrix os; bump version 2.1.16

This commit is contained in:
Mario Fink 2025-02-12 22:34:01 +01:00
parent 6f4511e1c2
commit 400b6eaab9
2 changed files with 32 additions and 8 deletions

View File

@ -23,14 +23,13 @@ jobs:
- name: Display files
run: ls -lR
build_wheels:
build_wheels_ubuntu:
name: Build binary wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: [build_setup]
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
arch: [auto32, auto64, aarch64]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
@ -45,12 +44,37 @@ jobs:
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
working-directory: python/
# env:
# CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-*
- name: Store binary wheels
uses: actions/upload-artifact@v4.6.0
with:
name: binary-wheels-${{matrix.os}}-${{matrix.arch}}
name: binary-wheels-${{matrix.os}}-${{ strategy.job-index }}
path: python/wheelhouse/*.whl
build_wheels_windows:
name: Build binary wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: [build_setup]
strategy:
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.1.2
- name: Get wheel configuration files
uses: actions/download-artifact@v4.1.7
with:
name: wheel-config
path: python/
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
working-directory: python/
- name: Store binary wheels
uses: actions/upload-artifact@v4.6.0
with:
name: binary-wheels-${{matrix.os}}-${{ strategy.job-index }}
path: python/wheelhouse/*.whl
build_sdist:
@ -81,7 +105,7 @@ jobs:
upload_pypi:
name: Upload wheels to PyPI
runs-on: ubuntu-24.04
needs: [build_wheels, build_sdist]
needs: [build_wheels_ubuntu, build_wheels_windows, build_sdist]
steps:
- name: Get source wheels

View File

@ -1 +1 @@
2.1.15
2.1.16