@@ -3,8 +3,9 @@ name: Build, test, package
3
3
on : [push,pull_request]
4
4
5
5
env :
6
- itk-git-tag : " 171fb2ba33a87041f99328a2f26612ff33aa9cc8"
7
- itk-wheel-tag : " v5.3rc04.post3"
6
+ itk-git-tag : " v5.3.0"
7
+ itk-wheel-tag : " v5.3.0"
8
+ itk-python-package-tag : " 03391ad738438661fff40bfe37a7cfabd171b9b1"
8
9
opencl-icd-loader-git-tag : " v2021.04.29"
9
10
opencl-headers-git-tag : " v2021.04.29"
10
11
vkfft-backend : 3
@@ -17,13 +18,13 @@ jobs:
17
18
strategy :
18
19
max-parallel : 3
19
20
matrix :
20
- os : [ubuntu-20.04, windows-2019 , macos-11]
21
+ os : [ubuntu-20.04, windows-2022 , macos-11]
21
22
include :
22
23
- os : ubuntu-20.04
23
24
c-compiler : " gcc"
24
25
cxx-compiler : " g++"
25
26
cmake-build-type : " MinSizeRel"
26
- - os : windows-2019
27
+ - os : windows-2022
27
28
c-compiler : " cl.exe"
28
29
cxx-compiler : " cl.exe"
29
30
cmake-build-type : " Release"
46
47
python -m pip install ninja
47
48
48
49
- name : Get specific version of CMake, Ninja
49
- uses : lukka/get-cmake@v3.18.3
50
+ uses : lukka/get-cmake@v3.22.2
50
51
51
52
- name : Download OpenCL-SDK
52
53
if : matrix.os == 'macos-11'
73
74
shell : bash
74
75
75
76
- name : Install pocl
76
- if : matrix.os != 'windows-2019 '
77
+ if : matrix.os != 'windows-2022 '
77
78
run : |
78
79
sudo conda config --add channels conda-forge
79
80
sudo conda config --set channel_priority strict
98
99
shell : bash
99
100
100
101
- name : Build OpenCL-ICD-Loader
101
- if : matrix.os != 'windows-2019 '
102
+ if : matrix.os != 'windows-2022 '
102
103
run : |
103
104
cd ..
104
105
mkdir OpenCL-ICD-Loader-build
@@ -107,18 +108,18 @@ jobs:
107
108
sudo cmake --build . --target install
108
109
109
110
- name : Build OpenCL-ICD-Loader
110
- if : matrix.os == 'windows-2019 '
111
+ if : matrix.os == 'windows-2022 '
111
112
run : |
112
113
cd ..
113
114
mkdir OpenCL-ICD-Loader-build
114
115
cd OpenCL-ICD-Loader-build
115
- call "C:\Program Files (x86) \Microsoft Visual Studio\2019 \Enterprise\VC\Auxiliary\Build\vcvars64.bat"
116
+ call "C:\Program Files\Microsoft Visual Studio\2022 \Enterprise\VC\Auxiliary\Build\vcvars64.bat"
116
117
cmake -DCMAKE_C_COMPILER:FILEPATH="${{ matrix.c-compiler }}" -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_CXX_COMPILER="${{ matrix.cxx-compiler }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.cmake-build-type }} -DBUILD_TESTING:BOOL=OFF -GNinja ../OpenCL-ICD-Loader
117
118
cmake --build . --target install
118
119
shell : cmd
119
120
120
121
- name : Build ITK
121
- if : matrix.os != 'windows-2019 '
122
+ if : matrix.os != 'windows-2022 '
122
123
run : |
123
124
cd ..
124
125
mkdir ITK-build
@@ -127,12 +128,12 @@ jobs:
127
128
ninja
128
129
129
130
- name : Build ITK
130
- if : matrix.os == 'windows-2019 '
131
+ if : matrix.os == 'windows-2022 '
131
132
run : |
132
133
cd ..
133
134
mkdir ITK-build
134
135
cd ITK-build
135
- call "C:\Program Files (x86) \Microsoft Visual Studio\2019 \Enterprise\VC\Auxiliary\Build\vcvars64.bat"
136
+ call "C:\Program Files\Microsoft Visual Studio\2022 \Enterprise\VC\Auxiliary\Build\vcvars64.bat"
136
137
cmake -DCMAKE_C_COMPILER:FILEPATH="${{ matrix.c-compiler }}" -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_CXX_COMPILER="${{ matrix.cxx-compiler }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.cmake-build-type }} -DBUILD_TESTING:BOOL=OFF -GNinja ../ITK
137
138
ninja
138
139
shell : cmd
@@ -196,31 +197,31 @@ jobs:
196
197
shell : bash
197
198
198
199
- name : Build and test
199
- if : matrix.os != 'windows-2019 '
200
+ if : matrix.os != 'windows-2022 '
200
201
run : |
201
202
ctest --output-on-failure -j 2 -V -S dashboard.cmake -R "VkFFTBackend"
202
203
203
204
- name : Build and test
204
- if : matrix.os == 'windows-2019 '
205
+ if : matrix.os == 'windows-2022 '
205
206
run : |
206
- call "C:\Program Files (x86) \Microsoft Visual Studio\2019 \Enterprise\VC\Auxiliary\Build\vcvars64.bat"
207
+ call "C:\Program Files\Microsoft Visual Studio\2022 \Enterprise\VC\Auxiliary\Build\vcvars64.bat"
207
208
ctest --output-on-failure -j 2 -V -S dashboard.cmake -R "VkFFTBackend"
208
209
shell : cmd
209
210
210
211
build-windows-opencl-python-packages :
211
- runs-on : windows-2019
212
+ runs-on : windows-2022
212
213
strategy :
213
214
max-parallel : 2
214
215
matrix :
215
- python-version-minor : ["7", "8", "9", "10"]
216
+ python-version-minor : ["7", "8", "9", "10", "11" ]
216
217
include :
217
218
- c-compiler : " cl.exe"
218
219
cxx-compiler : " cl.exe"
219
220
cmake-build-type : " MinSizeRel"
220
221
221
222
steps :
222
223
- name : Get specific version of CMake, Ninja
223
- uses : lukka/get-cmake@v3.18.3
224
+ uses : lukka/get-cmake@v3.22.2
224
225
225
226
- uses : actions/checkout@v2
226
227
with :
@@ -233,6 +234,7 @@ jobs:
233
234
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-python.ps1'))
234
235
235
236
- name : ' Fetch build dependencies'
237
+ shell : bash
236
238
run : |
237
239
mv im ../../
238
240
cd ../../im
@@ -242,7 +244,14 @@ jobs:
242
244
7z x doxygen-1.8.11.windows.bin.zip -o/c/P/doxygen -aoa -r
243
245
curl -L "https://data.kitware.com/api/v1/file/5bbf87ba8d777f06b91f27d6/download/grep-win.zip" -o "grep-win.zip"
244
246
7z x grep-win.zip -o/c/P/grep -aoa -r
245
- shell : bash
247
+
248
+ echo "Updating ITKPythonPackage build scripts to ${{ env.itk-python-package-tag }}"
249
+ pushd /c/P/IPP
250
+ git remote add InsightSoftwareConsortium https://github.com/InsightSoftwareConsortium/ITKPythonPackage.git --tags
251
+ git fetch InsightSoftwareConsortium
252
+ git checkout ${{ env.itk-python-package-tag }}
253
+ git status
254
+ popd
246
255
247
256
- name : Download OpenCL-ICD-Loader
248
257
run : |
@@ -265,15 +274,15 @@ jobs:
265
274
cd ..
266
275
mkdir OpenCL-ICD-Loader-build
267
276
cd OpenCL-ICD-Loader-build
268
- call "C:\Program Files (x86) \Microsoft Visual Studio\2019 \Enterprise\VC\Auxiliary\Build\vcvars64.bat"
277
+ call "C:\Program Files\Microsoft Visual Studio\2022 \Enterprise\VC\Auxiliary\Build\vcvars64.bat"
269
278
cmake -DCMAKE_C_COMPILER:FILEPATH="${{ matrix.c-compiler }}" -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_CXX_COMPILER="${{ matrix.cxx-compiler }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.cmake-build-type }} -DBUILD_TESTING:BOOL=OFF -GNinja ../OpenCL-ICD-Loader
270
279
cmake --build . --target install
271
280
shell : cmd
272
281
273
282
- name : ' Build 🐍 Python 📦 package'
274
283
run : |
275
284
cd ../../im
276
- call "C:\Program Files (x86) \Microsoft Visual Studio\2019 \Enterprise\VC\Auxiliary\Build\vcvars64.bat"
285
+ call "C:\Program Files\Microsoft Visual Studio\2022 \Enterprise\VC\Auxiliary\Build\vcvars64.bat"
277
286
set PATH=C:\P\grep;%PATH%
278
287
set CC=cl.exe
279
288
set CXX=cl.exe
@@ -291,7 +300,7 @@ jobs:
291
300
strategy :
292
301
max-parallel : 2
293
302
matrix :
294
- python-version : ["37", "38", "39", "310"]
303
+ python-version : ["37", "38", "39", "310", "311" ]
295
304
296
305
steps :
297
306
- uses : actions/checkout@v2
@@ -305,11 +314,19 @@ jobs:
305
314
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
306
315
df -h
307
316
317
+ - name : ' Fetch build dependencies'
318
+ shell : bash
319
+ run : |
320
+ sudo apt-get install zstd
321
+ unzstd --version
322
+
308
323
- name : ' Build 🐍 Python 📦 package'
309
324
run : |
310
325
export ITK_PACKAGE_VERSION=${{ env.itk-wheel-tag }}
311
- export TARBALL_SPECIALIZATION="-manylinux_2_28"
312
- ./wrapping/dockcross-manylinux-download-cache.sh
326
+ export ITKPYTHONPACKAGE_TAG=${{ env.itk-python-package-tag }}
327
+ export MANYLINUX_VERSION="_2_28"
328
+ echo "Building for manylinux specialization ${MANYLINUX_VERSION}"
329
+ ./wrapping/dockcross-manylinux-download-cache.sh cp${{ matrix.python-version }}
313
330
./wrapping/dockcross-manylinux-build-module-wheels-opencl.sh cp${{ matrix.python-version }}
314
331
315
332
- name : Publish Python package as GitHub Artifact
@@ -331,16 +348,17 @@ jobs:
331
348
sudo xcode-select -s "/Applications/Xcode_13.2.1.app"
332
349
333
350
- name : Get specific version of CMake, Ninja
334
- uses : lukka/get-cmake@v3.18.3
351
+ uses : lukka/get-cmake@v3.22.2
335
352
336
353
- name : ' Fetch build script'
337
354
run : |
338
- curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/master /scripts/macpython-download-cache-and-build-module-wheels.sh -O
355
+ curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/${{ env.itk-python-package-tag }} /scripts/macpython-download-cache-and-build-module-wheels.sh -O
339
356
chmod u+x macpython-download-cache-and-build-module-wheels.sh
340
357
341
358
- name : ' Build 🐍 Python 📦 package'
342
359
run : |
343
360
export ITK_PACKAGE_VERSION=${{ env.itk-wheel-tag }}
361
+ export ITKPYTHONPACKAGE_TAG=${{ env.itk-python-package-tag }}
344
362
export MACOSX_DEPLOYMENT_TARGET=10.9
345
363
./macpython-download-cache-and-build-module-wheels.sh
346
364
0 commit comments