Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

Commit 3df1fde

Browse files
committed
COMP: Update GitHub Actions from ITKModuleTemplate
1 parent b5724f9 commit 3df1fde

2 files changed

Lines changed: 26 additions & 8 deletions

File tree

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

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ jobs:
1313
- os: ubuntu-18.04
1414
c-compiler: "gcc"
1515
cxx-compiler: "g++"
16-
itk-git-tag: "v5.1.1"
16+
itk-git-tag: "abd38d5a0040b9a8fbb0ad3127089dbb72a93342"
1717
cmake-build-type: "MinSizeRel"
1818
- os: windows-2019
1919
c-compiler: "cl.exe"
2020
cxx-compiler: "cl.exe"
21-
itk-git-tag: "v5.1.1"
21+
itk-git-tag: "abd38d5a0040b9a8fbb0ad3127089dbb72a93342"
2222
cmake-build-type: "Release"
2323
- os: macos-10.15
2424
c-compiler: "clang"
2525
cxx-compiler: "clang++"
26-
itk-git-tag: "v5.1.1"
26+
itk-git-tag: "abd38d5a0040b9a8fbb0ad3127089dbb72a93342"
2727
cmake-build-type: "MinSizeRel"
2828

2929
steps:
@@ -39,6 +39,9 @@ jobs:
3939
python -m pip install --upgrade pip
4040
python -m pip install ninja
4141
42+
- name: Get specific version of CMake, Ninja
43+
uses: lukka/get-cmake@v3.18.3
44+
4245
- name: Download ITK
4346
run: |
4447
cd ..
@@ -133,7 +136,7 @@ jobs:
133136
matrix:
134137
python-version: [36, 37, 38, 39]
135138
include:
136-
- itk-python-git-tag: "v5.1.1.post1"
139+
- itk-python-git-tag: "v5.2rc01"
137140

138141
steps:
139142
- uses: actions/checkout@v2
@@ -169,11 +172,18 @@ jobs:
169172
max-parallel: 2
170173
matrix:
171174
include:
172-
- itk-python-git-tag: "v5.1.1.post1"
175+
- itk-python-git-tag: "v5.2rc01"
173176

174177
steps:
175178
- uses: actions/checkout@v2
176179

180+
- name: 'Specific XCode version'
181+
run: |
182+
sudo xcode-select -s "/Applications/Xcode_11.7.app"
183+
184+
- name: Get specific version of CMake, Ninja
185+
uses: lukka/get-cmake@v3.18.3
186+
177187
- name: 'Fetch build script'
178188
run: |
179189
curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/macpython-download-cache-and-build-module-wheels.sh -O
@@ -198,10 +208,15 @@ jobs:
198208
matrix:
199209
python-version-minor: [6, 7, 8, 9]
200210
include:
201-
- itk-python-git-tag: "v5.1.1.post1"
211+
- itk-python-git-tag: "v5.2rc01"
202212

203213
steps:
214+
- name: Get specific version of CMake, Ninja
215+
uses: lukka/get-cmake@v3.18.3
216+
204217
- uses: actions/checkout@v2
218+
with:
219+
path: "im"
205220

206221
- name: 'Install Python'
207222
run: |
@@ -212,6 +227,8 @@ jobs:
212227
- name: 'Fetch build dependencies'
213228
shell: bash
214229
run: |
230+
mv im ../../
231+
cd ../../im
215232
curl -L "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${{ matrix.itk-python-git-tag }}/ITKPythonBuilds-windows.zip" -o "ITKPythonBuilds-windows.zip"
216233
7z x ITKPythonBuilds-windows.zip -o/c/P -aoa -r
217234
curl -L "https://data.kitware.com/api/v1/file/5c0ad59d8d777f2179dd3e9c/download" -o "doxygen-1.8.11.windows.bin.zip"
@@ -222,6 +239,7 @@ jobs:
222239
- name: 'Build 🐍 Python 📦 package'
223240
shell: cmd
224241
run: |
242+
cd ../../im
225243
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
226244
set PATH="C:\P\grep;%PATH%"
227245
set CC=cl.exe
@@ -231,7 +249,7 @@ jobs:
231249
- name: Publish Python package as GitHub Artifact
232250
uses: actions/upload-artifact@v1
233251
with:
234-
name: WindowWheel3.${{ matrix.python-version-minor }}
252+
name: WindowsWheel3.${{ matrix.python-version-minor }}
235253
path: dist
236254

237255
publish-python-packages-to-pypi:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@
5050
keywords='ITK InsightToolkit',
5151
url=r'https://itk.org/',
5252
install_requires=[
53-
r'itk>=5.1.1'
53+
r'itk>=5.2rc1'
5454
]
5555
)

0 commit comments

Comments
 (0)