Skip to content

Commit

Permalink
ENH: Introduce manylinux option with ARM
Browse files Browse the repository at this point in the history
Exposes input parameter to allow the user to build for multiple Linux
toolsets and target architectures via available manylinux docker images.

Depends on ARM support introduced in ITKPythonPackage:
InsightSoftwareConsortium/ITKPythonPackage#236
  • Loading branch information
tbirdso committed Dec 19, 2022
1 parent 36e33ec commit 63d3ec8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-test-package-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
description: 'Git tag or commit hash for ITKPythonPackage build scripts to use'
required: false
type: string
default: 'aa3b0767801ecc489f6219777ead2652f7ac4ccf'
default: 'd25b413ac952309d3d89e0a50b31e98549db8b92'
itk-python-package-org:
description: 'Github organization name for fetching ITKPythonPackage build scripts'
required: false
Expand All @@ -30,6 +30,11 @@ on:
# example: InsightSoftwareConsortium/ITKMeshToPolyData@3ad8f08:InsightSoftwareConsortium/ITKBSplineGradient@0.3.0
required: false
type: string
manylinux-platforms:
description: 'colon-delimited list of "<manylinux-image>-<arch>" specializations'
required: false
type: string
default: "_2_28-aarch64:_2_28-x64:2014-x64"
secrets:
pypi_password:
required: false # Packages will not be uploaded to PyPI if not set
Expand Down Expand Up @@ -80,9 +85,11 @@ jobs:
CMAKE_OPTIONS="--cmake_options ${{ inputs.cmake-options }}"
fi
for manylinux_version in "_2_28" "2014"; do
MANYLINUX_PLATFORMS=${{ inputs.manylinux-platforms }}
for manylinux_version in ${MANYLINUX_PLATFORMS//:/ }; do
rm -rf ITKPythonPackage
export MANYLINUX_VERSION=${manylinux_version}
export MANYLINUX_VERSION=`(echo ${manylinux_version} | cut -d '-' -f 1)`
export TARGET_ARCH=`(echo ${manylinux_version} | cut -d '-' -f 2)`
echo "Building for manylinux specialization ${MANYLINUX_VERSION}"
./dockcross-manylinux-download-cache-and-build-module-wheels.sh cp${{ matrix.python-version }} $CMAKE_OPTIONS
done
Expand Down

0 comments on commit 63d3ec8

Please sign in to comment.