Skip to content

Commit a22b8e0

Browse files
committed
Build Linux platform wheels with cibuildwheel
1 parent ae64d74 commit a22b8e0

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/workflows/ci-cd.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,54 @@ jobs:
605605
|| 'false'
606606
}}
607607
608+
build-bin-manylinux-tested-arches-cibuildwheel:
609+
name: >-
610+
[cibuildwheel] 📦 ${{ needs.pre-setup.outputs.git-tag }}
611+
[mode: ${{
612+
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
613+
&& 'nightly' || ''
614+
}}${{
615+
fromJSON(needs.pre-setup.outputs.release-requested)
616+
&& 'release' || ''
617+
}}${{
618+
(
619+
!fromJSON(needs.pre-setup.outputs.is-untagged-devel)
620+
&& !fromJSON(needs.pre-setup.outputs.release-requested)
621+
) && 'test' || ''
622+
}}] manylinux
623+
needs:
624+
- build-src
625+
- pre-setup # transitive, for accessing settings
626+
strategy:
627+
matrix:
628+
os:
629+
- ubuntu
630+
uses: ./.github/workflows/reusable-cibuildwheel.yml
631+
with:
632+
os: ${{ matrix.os }}
633+
wheel-tags-to-skip: >-
634+
${{
635+
!fromJSON(needs.pre-setup.outputs.release-requested)
636+
&& '*_i686
637+
*-macosx_universal2
638+
*-musllinux_*
639+
*-win32
640+
*_arm64
641+
pp*'
642+
|| ''
643+
}}
644+
source-tarball-name: >-
645+
${{ needs.pre-setup.outputs.sdist-artifact-name }}
646+
dists-artifact-name: >-
647+
${{ needs.pre-setup.outputs.dists-artifact-name }}
648+
qemu: all
649+
cython-tracing: >- # Cython line tracing for coverage collection
650+
${{
651+
fromJSON(needs.pre-setup.outputs.profiling-enabled)
652+
&& 'true'
653+
|| 'false'
654+
}}
655+
608656
build-bin-manylinux-tested-arches:
609657
name: >-
610658
📦 ${{ needs.pre-setup.outputs.git-tag }}

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ PIP_NO_WARN_SCRIPT_LOCATION = "1"
162162
PRE_COMMIT_COLOR = "always"
163163
PY_COLORS = "1"
164164

165+
[tool.cibuildwheel.linux]
166+
manylinux-aarch64-image = "ghcr.io/ansible/pylibssh-manylinux_2_28_aarch64:libssh-v0.9.6"
167+
manylinux-ppc64le-image = "ghcr.io/ansible/pylibssh-manylinux_2_28_ppc64le:libssh-v0.9.6"
168+
manylinux-s390x-image = "ghcr.io/ansible/pylibssh-manylinux_2_28_s390x:libssh-v0.9.6"
169+
manylinux-x86_64-image = "ghcr.io/ansible/pylibssh-manylinux_2_28_x86_64:libssh-v0.9.6"
170+
165171
[tool.cibuildwheel.macos]
166172
before-build = [
167173
"brew install libssh", # @0.9.4 # pinning the version does not work

0 commit comments

Comments
 (0)