Skip to content

Try a more typical cibuildwheel setup #1169

Try a more typical cibuildwheel setup

Try a more typical cibuildwheel setup #1169

Workflow file for this run

name: Build Wheels
on:
push:
branches: [main]
tags: ["*"]
pull_request:
# Check all PR
jobs:
build-wheels:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
arch: ["x86_64"]
name: "sphericart ${{matrix.os}} ${{matrix.arch}}"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build custom Manylinux Docker Image
run: |
docker build -t sphericart_manylinux2014_"${{ matrix.arch }}" scripts/manylinux2014_"${{ matrix.arch }}"
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.22.0
- name: Build wheels
run: python -m cibuildwheel .
env:
SPHERICART_ARCH_NATIVE: OFF
CUDA_HOME: /usr/local/cuda
CIBW_BUILD_VERBOSITY: 1
CIBW_BUILD: "cp312-*"
CIBW_SKIP: "*-musllinux*"
CIBW_ARCHS: "${{ matrix.arch }}"
CIBW_MANYLINUX_X86_64_IMAGE: "sphericart_manylinux2014_x86_64"
CIBW_REPAIR_WHEEL_COMMAND_LINUX: |
auditwheel repair \
-w {dest_dir} {wheel}
- uses: actions/upload-artifact@v4
with:
name: sphericart-wheel-${{ matrix.arch }}
path: ./wheelhouse/*.whl