diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a1f550..113bce0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml new file mode 100644 index 0000000..b06c377 --- /dev/null +++ b/.github/workflows/wheels.yml @@ -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. + # : + 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 }}