-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Wheel | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-13, macos-14] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v3 | ||
|
||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==2.17.0 | ||
|
||
- name: Build wheels | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | ||
path: ./wheelhouse/*.whl |
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
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ authors = [{name = "Kenji Koide", email = "[email protected]"}] | |
description = "Efficient and parallelized algorithms for fine point cloud registration" | ||
readme = "README.py.md" | ||
license = {text = "MIT"} | ||
dependencies = ["numpy >=1.21", "scipy >=1.7"] | ||
requires-python = ">=3.7" | ||
|
||
[project.urls] | ||
|
@@ -29,9 +30,21 @@ wheel.py-api = "cp312" # Build stable ABI wheels for CPython 3.12+ | |
[tool.scikit-build.cmake.define] | ||
BUILD_PYTHON_BINDINGS = true | ||
BUILD_SHARED_LIBS = false | ||
BUILD_WITH_OPENMP = true | ||
|
||
[tool.cibuildwheel.linux] | ||
before-all = "yum install -y eigen3-devel libomp-devel" | ||
|
||
[tool.cibuildwheel.macos] | ||
before-all = "brew install eigen libomp" | ||
|
||
[tool.cibuildwheel.windows] | ||
before-all = "choco install eigen -y" | ||
|
||
[tool.cibuildwheel] | ||
manylinux-x86_64-image = "manylinux_2_28" | ||
build = "*" | ||
skip = "pp*" # Don't build for PyPy | ||
test-command = "pytest {project}/src --color=yes -v" | ||
test-requires = "pytest" | ||
test-command = "cd {project} && pytest {project}/src/example/*.py --color=yes -v" | ||
build-verbosity = 1 |