1010 itk-wheel-tag :
1111 required : false
1212 type : string
13- default : ' v5.3rc04.post4'
13+ default : ' v5.3.0'
14+ itk-python-package-tag :
15+ required : false
16+ type : string
17+ default : ' 0f5effc39afbf7cb1ac5ab20faa0996ddb12b34d' # 5.3 patch
1418 secrets :
1519 pypi_password :
1620 required : false # Packages will not be uploaded to PyPI if not set
4347
4448 - name : ' Fetch build script'
4549 run : |
46- curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/dockcross-manylinux-download-cache-and-build-module-wheels.sh -O
50+ ITK_PYTHON_PACKAGE_GIT_TAG=${{ inputs.itk-python-package-tag }}
51+ if [[ -z ${ITK_PYTHON_PACKAGE_GIT_TAG} ]]; then
52+ ITK_PYTHON_PACKAGE_GIT_TAG="master"
53+ fi
54+
55+ curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/${ITK_PYTHON_PACKAGE_GIT_TAG}/scripts/dockcross-manylinux-download-cache-and-build-module-wheels.sh -O
4756 chmod u+x dockcross-manylinux-download-cache-and-build-module-wheels.sh
4857
4958 - name : ' Build 🐍 Python 📦 package'
@@ -81,11 +90,16 @@ jobs:
8190 sudo xcode-select -s "/Applications/Xcode_13.2.1.app"
8291
8392 - name : Get specific version of CMake, Ninja
84- uses : lukka/get-cmake@v3.18.3
93+ uses : lukka/get-cmake@v3.22.2
8594
8695 - name : ' Fetch build script'
8796 run : |
88- curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/macpython-download-cache-and-build-module-wheels.sh -O
97+ ITK_PYTHON_PACKAGE_GIT_TAG=${{ inputs.itk-python-package-tag }}
98+ if [[ -z ${ITK_PYTHON_PACKAGE_GIT_TAG} ]]; then
99+ ITK_PYTHON_PACKAGE_GIT_TAG="master"
100+ fi
101+
102+ curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/${ITK_PYTHON_PACKAGE_GIT_TAG}/scripts/macpython-download-cache-and-build-module-wheels.sh -O
89103 chmod u+x macpython-download-cache-and-build-module-wheels.sh
90104
91105 - name : ' Build 🐍 Python 📦 package'
@@ -115,7 +129,7 @@ jobs:
115129
116130 steps :
117131 - name : Get specific version of CMake, Ninja
118- uses : lukka/get-cmake@v3.18.3
132+ uses : lukka/get-cmake@v3.22.2
119133
120134 - uses : actions/checkout@v2
121135 with :
@@ -139,6 +153,18 @@ jobs:
139153 curl -L "https://data.kitware.com/api/v1/file/5bbf87ba8d777f06b91f27d6/download/grep-win.zip" -o "grep-win.zip"
140154 7z x grep-win.zip -o/c/P/grep -aoa -r
141155
156+ if [[ -n ${{ inputs.itk-python-package-tag }} ]]; then
157+ echo "Updating ITKPythonPackage build scripts to ${{ inputs.itk-python-package-tag }}"
158+ pushd /c/P/IPP
159+ git remote add InsightSoftwareConsortium https://github.com/InsightSoftwareConsortium/ITKPythonPackage.git --tags
160+ git fetch InsightSoftwareConsortium
161+ git checkout ${{ inputs.itk-python-package-tag }}
162+ git status
163+ popd
164+ else
165+ echo "Using ITKPythonPackage scripts included with ITKPythonBuilds archive"
166+ fi
167+
142168 - name : ' Build 🐍 Python 📦 package'
143169 shell : cmd
144170 run : |
@@ -160,7 +186,7 @@ jobs:
160186 - build-linux-python-packages
161187 - build-macos-python-packages
162188 - build-windows-python-packages
163- runs-on : ubuntu-18 .04
189+ runs-on : ubuntu-20 .04
164190
165191 steps :
166192 - name : Download Python Packages
0 commit comments