Skip to content

Commit f4a50bf

Browse files
committed
ENH: Introduce manylinux option with ARM
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
1 parent 36e33ec commit f4a50bf

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/build-test-package-python.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
description: 'Git tag or commit hash for ITKPythonPackage build scripts to use'
2020
required: false
2121
type: string
22-
default: 'aa3b0767801ecc489f6219777ead2652f7ac4ccf'
22+
default: 'cc59e8554907802b6de4b1252a4ae33171123e47'
2323
itk-python-package-org:
2424
description: 'Github organization name for fetching ITKPythonPackage build scripts'
2525
required: false
@@ -30,6 +30,11 @@ on:
3030
# example: InsightSoftwareConsortium/ITKMeshToPolyData@3ad8f08:InsightSoftwareConsortium/ITKBSplineGradient@0.3.0
3131
required: false
3232
type: string
33+
manylinux-platforms:
34+
description: 'colon-delimited list of "<manylinux-image>-<arch>" specializations'
35+
required: false
36+
type: string
37+
default: "_2_28-aarch64:_2_28-x64:2014-x64"
3338
secrets:
3439
pypi_password:
3540
required: false # Packages will not be uploaded to PyPI if not set
@@ -80,9 +85,11 @@ jobs:
8085
CMAKE_OPTIONS="--cmake_options ${{ inputs.cmake-options }}"
8186
fi
8287
83-
for manylinux_version in "_2_28" "2014"; do
88+
MANYLINUX_PLATFORMS=${{ inputs.manylinux-platforms }}
89+
for manylinux_version in ${MANYLINUX_PLATFORMS//:/ }; do
8490
rm -rf ITKPythonPackage
85-
export MANYLINUX_VERSION=${manylinux_version}
91+
export MANYLINUX_VERSION=`(echo ${manylinux_version} | cut -d '-' -f 1)`
92+
export TARGET_ARCH=`(echo ${manylinux_version} | cut -d '-' -f 2)`
8693
echo "Building for manylinux specialization ${MANYLINUX_VERSION}"
8794
./dockcross-manylinux-download-cache-and-build-module-wheels.sh cp${{ matrix.python-version }} $CMAKE_OPTIONS
8895
done

0 commit comments

Comments
 (0)