Skip to content

Commit

Permalink
Build Linux platform wheels with cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Jan 22, 2024
1 parent ae64d74 commit 66eee7e
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,54 @@ jobs:
|| 'false'
}}
build-bin-manylinux-tested-arches-cibuildwheel:
name: >-
[cibuildwheel] 📦 ${{ needs.pre-setup.outputs.git-tag }}
[mode: ${{
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
&& 'nightly' || ''
}}${{
fromJSON(needs.pre-setup.outputs.release-requested)
&& 'release' || ''
}}${{
(
!fromJSON(needs.pre-setup.outputs.is-untagged-devel)
&& !fromJSON(needs.pre-setup.outputs.release-requested)
) && 'test' || ''
}}] manylinux
needs:
- build-src
- pre-setup # transitive, for accessing settings
strategy:
matrix:
os:
- ubuntu
uses: ./.github/workflows/reusable-cibuildwheel.yml
with:
os: ${{ matrix.os }}
wheel-tags-to-skip: >-
${{
!fromJSON(needs.pre-setup.outputs.release-requested)
&& '*_i686
*-macosx_universal2
*-musllinux_*
*-win32
*_arm64
pp*'
|| ''
}}
source-tarball-name: >-
${{ needs.pre-setup.outputs.sdist-artifact-name }}
dists-artifact-name: >-
${{ needs.pre-setup.outputs.dists-artifact-name }}
qemu: all
cython-tracing: >- # Cython line tracing for coverage collection
${{
fromJSON(needs.pre-setup.outputs.profiling-enabled)
&& 'true'
|| 'false'
}}
build-bin-manylinux-tested-arches:
name: >-
📦 ${{ needs.pre-setup.outputs.git-tag }}
Expand Down
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,17 @@ PIP_NO_WARN_SCRIPT_LOCATION = "1"
PRE_COMMIT_COLOR = "always"
PY_COLORS = "1"

[tool.cibuildwheel.linux]
manylinux-aarch64-image = "ghcr.io/ansible/pylibssh-manylinux_2_28_aarch64:libssh-v0.9.6"
manylinux-ppc64le-image = "ghcr.io/ansible/pylibssh-manylinux_2_28_ppc64le:libssh-v0.9.6"
manylinux-s390x-image = "ghcr.io/ansible/pylibssh-manylinux_2_28_s390x:libssh-v0.9.6"
manylinux-x86_64-image = "ghcr.io/ansible/pylibssh-manylinux_2_28_x86_64:libssh-v0.9.6"

[tool.cibuildwheel.linux.environment]
STATIC_DEPS_DIR = "$(cat .static-deps-path)"
LDFLAGS = "'-L${STATIC_DEPS_PREFIX}/lib64' '-L${STATIC_DEPS_PREFIX}/lib'"
LD_LIBRARY_PATH = "${STATIC_DEPS_PREFIX}/lib64:${STATIC_DEPS_PREFIX}/lib:${LD_LIBRARY_PATH}"

[tool.cibuildwheel.macos]
before-build = [
"brew install libssh", # @0.9.4 # pinning the version does not work
Expand Down

0 comments on commit 66eee7e

Please sign in to comment.