Skip to content

Commit

Permalink
feat: build musllinux_1_1 wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Sep 24, 2021
1 parent 196e27f commit 092f2fe
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:


build_wheels:
name: Build ${{ matrix.arch }} wheels on ${{ matrix.os }}
name: Build ${{ matrix.build }}${{ matrix.arch }} wheels on ${{ matrix.os }}
needs: [lint]
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -40,27 +40,47 @@ jobs:
include:
- os: ubuntu-20.04
arch: "x86_64"
build: ""
use_qemu: false
- os: ubuntu-20.04
arch: "i686"
build: ""
use_qemu: false
- os: ubuntu-20.04
arch: "aarch64"
build: "manylinux_"
use_qemu: true
- os: ubuntu-20.04
arch: "aarch64"
build: "musllinux_"
use_qemu: true
- os: ubuntu-20.04
arch: "ppc64le"
build: "manylinux_"
use_qemu: true
- os: ubuntu-20.04
arch: "ppc64le"
build: "musllinux_"
use_qemu: true
- os: ubuntu-20.04
arch: "s390x"
build: "manylinux_"
use_qemu: true
- os: ubuntu-20.04
arch: "s390x"
build: "musllinux_"
use_qemu: true
- os: windows-2019
arch: "AMD64"
build: ""
use_qemu: false
- os: windows-2019
arch: "x86"
build: ""
use_qemu: false
- os: macos-10.15
arch: "x86_64"
build: ""
use_qemu: false

steps:
Expand All @@ -74,10 +94,11 @@ jobs:
if: matrix.use_qemu && fromJSON(env.USE_QEMU)

- name: Build wheels
uses: pypa/cibuildwheel@v2.1.1
uses: pypa/cibuildwheel@v2.2.0a1
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
env:
CIBW_ARCHS: "${{ matrix.arch }}"
CIBW_BUILD: "cp39-${{ matrix.build }}*"

- uses: actions/upload-artifact@v2
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
Expand All @@ -101,9 +122,11 @@ jobs:
fetch-depth: 0 # required for versioneer to find tags

- name: Build wheels
uses: pypa/cibuildwheel@v2.0.1
uses: pypa/cibuildwheel@v2.2.0a1
env:
CIBW_ARCHS: "${{ matrix.arch }}"
CIBW_BEFORE_ALL: "pipx install -f --pip-args=\"-c {project}/constraints-ci.txt\" cmake && pipx install -f --pip-args=\"-c {project}/constraints-ci.txt\" ninja && ./scripts/manylinux-build-and-install-openssl.sh"
CIBW_BUILD: "cp39-manylinux_*"
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux1"
CIBW_MANYLINUX_I686_IMAGE: "manylinux1"

Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ matrix:
- arch: s390x

install:
- python -m pip install cibuildwheel==2.1.1
- python -m pip install cibuildwheel==2.2.0a1
- python -m pip install -r requirements-deploy.txt

script:
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ build-verbosity = "1"

[tool.cibuildwheel.linux]
before-all = [
"pipx install -f --pip-args=\"-c {project}/constraints-ci.txt\" cmake",
"cmake --version",
"pipx install -f --pip-args=\"-c {project}/constraints-ci.txt\" ninja",
"ninja --version",
"./scripts/manylinux-build-and-install-openssl.sh",
Expand Down

0 comments on commit 092f2fe

Please sign in to comment.