Skip to content

Commit 51ed0d9

Browse files
authored
Merge pull request #12 from InsightSoftwareConsortium/bump-itk
ENH: Bump for ITK v5.3 release
2 parents 29ad46f + 95ae454 commit 51ed0d9

File tree

2 files changed

+33
-7
lines changed

2 files changed

+33
-7
lines changed

.github/workflows/build-test-cxx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
itk-git-tag:
1616
required: false
1717
type: string
18-
default: 'abf5fa10522a36bc51f42f20f426a622f42ed90d'
18+
default: 'v5.3.0'
1919

2020
jobs:
2121
build-test-cxx:

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

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ on:
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
@@ -43,7 +47,12 @@ jobs:
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

Comments
 (0)