Skip to content

Commit fe54f06

Browse files
committed
ENH: Make ITK tags CI environment variables
Follows styling in TubeTK to make updating tags easier https://github.com/InsightSoftwareConsortium/ITKTubeTK/blob/7d643c7fc6e7e6d08b3a1a1eba5696c8718adb64/.github/workflows/build-test-package.yml#L5-L9
1 parent 18b4ebd commit fe54f06

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

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

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Build, test, package
22

33
on: [push,pull_request]
44

5+
env:
6+
itk-git-tag: "801370c025c7d296783481779a41c6d559c992c5"
7+
itk-wheel-tag: "v5.3rc04"
8+
59
jobs:
610
build-cxx:
711
runs-on: ${{ matrix.os }}
@@ -17,7 +21,6 @@ jobs:
1721
opencl-headers-git-tag: "v2021.04.29"
1822
opencl-version: 120
1923
vkfft-backend: 3
20-
itk-git-tag: "801370c025c7d296783481779a41c6d559c992c5"
2124
cmake-build-type: "MinSizeRel"
2225
- os: windows-2019
2326
c-compiler: "cl.exe"
@@ -26,7 +29,6 @@ jobs:
2629
opencl-headers-git-tag: "v2021.04.29"
2730
opencl-version: 120
2831
vkfft-backend: 3
29-
itk-git-tag: "801370c025c7d296783481779a41c6d559c992c5"
3032
cmake-build-type: "Release"
3133
- os: macos-10.15
3234
c-compiler: "clang"
@@ -35,7 +37,6 @@ jobs:
3537
opencl-headers-git-tag: "v2021.04.29"
3638
opencl-version: 120
3739
vkfft-backend: 3
38-
itk-git-tag: "801370c025c7d296783481779a41c6d559c992c5"
3940
cmake-build-type: "MinSizeRel"
4041

4142
steps:
@@ -91,7 +92,7 @@ jobs:
9192
cd ..
9293
git clone https://github.com/InsightSoftwareConsortium/ITK.git
9394
cd ITK
94-
git checkout ${{ matrix.itk-git-tag }}
95+
git checkout ${{ env.itk-git-tag }}
9596
9697
- name: Build OpenCL-SDK
9798
if: matrix.os == 'macos-10.15'
@@ -211,15 +212,14 @@ jobs:
211212
ctest --output-on-failure -j 2 -V -S dashboard.cmake -R "VkFFTBackend"
212213
shell: cmd
213214

214-
build-windows-python-packages:
215+
build-windows-opencl-python-packages:
215216
runs-on: windows-2019
216217
strategy:
217218
max-parallel: 2
218219
matrix:
219220
python-version-minor: [7, 8, 9, 10]
220221
include:
221-
- itk-python-git-tag: "v5.3rc04"
222-
c-compiler: "cl.exe"
222+
- c-compiler: "cl.exe"
223223
cxx-compiler: "cl.exe"
224224
opencl-icd-loader-git-tag: "v2021.04.29"
225225
opencl-headers-git-tag: "v2021.04.29"
@@ -243,7 +243,7 @@ jobs:
243243
run: |
244244
mv im ../../
245245
cd ../../im
246-
curl -L "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${{ matrix.itk-python-git-tag }}/ITKPythonBuilds-windows.zip" -o "ITKPythonBuilds-windows.zip"
246+
curl -L "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${{ env.itk-wheel-tag }}/ITKPythonBuilds-windows.zip" -o "ITKPythonBuilds-windows.zip"
247247
7z x ITKPythonBuilds-windows.zip -o/c/P -aoa -r
248248
curl -L "https://data.kitware.com/api/v1/file/5c0ad59d8d777f2179dd3e9c/download" -o "doxygen-1.8.11.windows.bin.zip"
249249
7z x doxygen-1.8.11.windows.bin.zip -o/c/P/doxygen -aoa -r
@@ -299,8 +299,6 @@ jobs:
299299
max-parallel: 2
300300
matrix:
301301
python-version: [37, 38, 39]
302-
include:
303-
- itk-python-git-tag: "v5.3rc04"
304302

305303
steps:
306304
- uses: actions/checkout@v2
@@ -316,7 +314,7 @@ jobs:
316314
317315
- name: 'Build 🐍 Python 📦 package'
318316
run: |
319-
export ITK_PACKAGE_VERSION=${{ matrix.itk-python-git-tag }}
317+
export ITK_PACKAGE_VERSION=${{ env.itk-wheel-tag }}
320318
./wrapping/dockcross-manylinux-download-cache.sh
321319
./wrapping/dockcross-manylinux-build-module-wheels-opencl.sh cp${{ matrix.python-version }}
322320
@@ -330,9 +328,6 @@ jobs:
330328
runs-on: macos-10.15
331329
strategy:
332330
max-parallel: 2
333-
matrix:
334-
include:
335-
- itk-python-git-tag: "v5.3rc04"
336331

337332
steps:
338333
- uses: actions/checkout@v2
@@ -347,7 +342,7 @@ jobs:
347342
348343
- name: 'Build 🐍 Python 📦 package'
349344
run: |
350-
export ITK_PACKAGE_VERSION=${{ matrix.itk-python-git-tag }}
345+
export ITK_PACKAGE_VERSION=${{ env.itk-wheel-tag }}
351346
export MACOSX_DEPLOYMENT_TARGET=10.9
352347
./macpython-download-cache-and-build-module-wheels.sh
353348
@@ -361,7 +356,7 @@ jobs:
361356
needs:
362357
- build-linux-opencl-python-packages
363358
- build-macos-opencl-python-packages
364-
- build-windows-python-packages
359+
- build-windows-opencl-python-packages
365360
runs-on: ubuntu-18.04
366361

367362
steps:

0 commit comments

Comments
 (0)