Skip to content

Update Github actions for nanobind #1

Update Github actions for nanobind

Update Github actions for nanobind #1

Workflow file for this run

name: Wheels Tests
on:
workflow_dispatch:
pull_request:
push:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}-${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
pybuilds: cp3{10,11,12,13}-manylinux_x86_64
arch: x86_64
id: linux_x86_64
- os: ubuntu-24.04-arm
pybuilds: cp3{10,11,12,13}-manylinux_aarch64
arch: aarch64
id: linux_arm64
- os: macos-15-intel
pybuilds: cp3{10,11,12,13}-macosx_x86_64
arch: x86_64
id: macos_x86
- os: macos-15
pybuilds: cp3{10,11,12,13}-macosx_arm64
arch: arm64
id: macos_arm64
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build wheels
uses: pypa/cibuildwheel@v2.23.2
with:
package-dir: nanobinds
env:
CIBW_BEFORE_ALL_LINUX: "bash .github/workflows/before_all.sh"
CIBW_BEFORE_ALL_MACOS: "bash .github/workflows/before_all.sh"
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
OMPL_BUILD_ARCH: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.pybuilds }}
CIBW_SKIP: "cp*-manylinux_i686 cp*-musllinux* cp*-win32"
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET="15.0"
CIBW_TEST_REQUIRES: "pytest"
CIBW_TEST_COMMAND: "pytest {project}/pytests"
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ matrix.arch }}
path: wheelhouse