Skip to content

Commit

Permalink
Switch to build frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwweber committed Nov 22, 2021
1 parent 0f7a8b2 commit 0c2d76b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- add-pypi-package

env:
CIBW_BUILD_FRONTEND: build
CIBW_BUILD_VERBOSITY: 3

jobs:
sdist:
name: Build the sdist
Expand Down Expand Up @@ -35,14 +39,15 @@ jobs:
name: sdist
if-no-files-found: error

manylinux-wheel:
name: Build ${{ matrix.arch }} Manylinux Wheels for py${{ matrix.py }}
linux-wheel:
name: Build ${{ matrix.plat}}linux_${{ matrix.arch }} for py${{ matrix.py }}
runs-on: ubuntu-20.04
needs: ["sdist"]
strategy:
matrix:
py: ["36", "37", "38", "39", "310"]
arch: ["x86_64", "i686", "aarch64", "ppc64le", "s390x"]
plat: ["many", "musl"]
fail-fast: true
env:
BOOST_INCLUDE: ${{ github.workspace }}/include
Expand Down Expand Up @@ -75,7 +80,7 @@ jobs:
- name: Build wheels
uses: pypa/cibuildwheel@v2.2.2
env:
CIBW_BUILD: cp${{ matrix.py }}-*
CIBW_BUILD: cp${{ matrix.py }}-${{ matrix.plat}}linux*
CIBW_ARCHS: ${{ matrix.arch }}

- name: Archive the built wheels
Expand Down Expand Up @@ -126,7 +131,7 @@ jobs:
CIBW_ENVIRONMENT: "BOOST_INCLUDE=${BOOST_ROOT}"
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BUILD: cp${{ matrix.py }}-*
CIBW_SKIP: cp35-*
CIBW_BUILD_FRONTEND: pip
- name: Archive the built wheels
uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -156,7 +161,6 @@ jobs:
uses: pypa/cibuildwheel@v2.2.2
env:
CIBW_BUILD: cp${{ matrix.py }}-*
CIBW_SKIP: cp35-*
CIBW_ARCHS: "x86_64"

- name: Archive the built wheels
Expand Down

0 comments on commit 0c2d76b

Please sign in to comment.