diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 508faf08d68..1ca232f8c9f 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -5,6 +5,10 @@ on: branches: - add-pypi-package +env: + CIBW_BUILD_FRONTEND: build + CIBW_BUILD_VERBOSITY: 3 + jobs: sdist: name: Build the sdist @@ -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 @@ -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 @@ -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: @@ -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 @@ -205,7 +209,7 @@ jobs: runs-on: ubuntu-20.04 needs: - "sdist" - - "manylinux-wheel" + - "linux-wheel" - "windows-wheel" - "macos-intel-wheel" - "macos-arm-wheel"