Skip to content

first stab at wheel building #186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
sudo apt install -y libcgal-dev
- name: Install other dependencies
run: |
sudo apt-get install -y libeigen3-dev python3-pip clang
sudo apt-get install -y libeigen3-dev clang
- name: Test with tox
run: |
pip install tox
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build wheels

# on:
# release:
# types: [released]
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [
ubuntu-latest,
# macOS-latest,
# windows-latest,
]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Build wheels
uses: pypa/cibuildwheel@v2.3.1
env:
# Install dependencies; use manylinux_2_24 to have Debian images with
# apt-get. With manylinux2014, it'll use CentOS.
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_24
CIBW_BEFORE_BUILD: |
apt-get update
apt-get install -y libeigen3-dev libcgal-dev
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-*
CIBW_SKIP: "*-musllinux*"
# Be a little economical here and only build native archs. Otherwise,
# it'll produce other targets, too.
# <https://cibuildwheel.readthedocs.io/en/stable/options/#archs>:
CIBW_ARCHS: native
- name: Save wheels
uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

# https://cibuildwheel.readthedocs.io/en/stable/deliver-to-pypi/
# upload:
# name: Upload wheels to PyPI
# needs: [build_wheels]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@v2
# with:
# name: artifact
# path: dist
# - uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}