Skip to content

Commit WIP

Commit WIP #80

Workflow file for this run

name: Build python wheels

Check failure on line 1 in .github/workflows/python-wheels.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python-wheels.yml

Invalid workflow file

(Line: 83, Col: 12): Job 'upload_all' depends on unknown job 'build_wheels'.
on:
push:
branches:
- master
pull_request:
branches:
- master
release:
types:
- published
jobs:
build_wheels_cloud:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
arch: x86_64
py-vers: cp39-* cp310-* cp311-* cp312-* cp313-*
before-all: ""
extra-env: ""
mdt: ""
- os: ubuntu-24.04-arm
arch: aarch64
py-vers: cp39-* cp310-* cp311-* cp312-* cp313-*
before-all: dnf -y install boost-devel zlib
extra-env: ""
mdt: ""
- os: macos-15-intel
arch: x86_64
py-vers: cp39-* cp310-* cp311-* cp312-* cp313-*
before-all: brew install libomp pkg-config automake autoconf autoconf-archive libtool
extra-env: CC=clang CXX=clang++
mdt: ""
- os: macos-15
arch: arm64
py-vers: cp39-* cp310-* cp311-* cp312-* cp313-*
before-all: brew install libomp pkg-config automake autoconf autoconf-archive libtool
extra-env: CC=clang CXX=clang++
mdt: ""
env:
CIBW_BUILD: ${{ matrix.py-vers }}
CIBW_SKIP: cp3*-musllinux_*
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
CIBW_BEFORE_ALL: ${{ matrix.before-all }}
CIBW_BEFORE_BUILD: pip install --upgrade pip setuptools wheel ninja numpy cython
CIBW_ENVIRONMENT: ${{ matrix.extra-env }}
# MACOSX_DEPLOYMENT_TARGET: ${{ matrix.mdt }}
steps:
- name: checkout repo & submodules
uses: actions/checkout@v5
with:
submodules: true
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.12.0
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v3
with:
name: wheels
path: ./wheelhouse/*.whl
retention-days: 1
upload_all:
name: Upload to PyPI
needs: build_wheels
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/setup-python@v3
- name: Download wheels
uses: actions/download-artifact@v3
with:
name: wheels
path: wheels
- uses: pypa/gh-action-pypi-publish@v1.6.4
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
packages_dir: wheels/