Skip to content

Commit

Permalink
ENH: Make ITK tags CI environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tbirdso committed Apr 13, 2022
1 parent 06f791c commit 06732c0
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/build-test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Build, test, package
on: [push,pull_request]

env:
itk-git-tag: "801370c025c7d296783481779a41c6d559c992c5"
itk-wheel-tag: "v5.3rc04"
ITKBSplineGradient-git-tag: v0.2.4
ITKHigherOrderAccurateGradient-git-tag: v1.1.0
ITKSplitComponents-git-tag: v2.0.4
Expand All @@ -19,17 +21,14 @@ jobs:
- os: ubuntu-18.04
c-compiler: "gcc"
cxx-compiler: "g++"
itk-git-tag: "801370c025c7d296783481779a41c6d559c992c5"
cmake-build-type: "MinSizeRel"
- os: windows-2019
c-compiler: "cl.exe"
cxx-compiler: "cl.exe"
itk-git-tag: "801370c025c7d296783481779a41c6d559c992c5"
cmake-build-type: "Release"
- os: macos-10.15
c-compiler: "clang"
cxx-compiler: "clang++"
itk-git-tag: "801370c025c7d296783481779a41c6d559c992c5"
cmake-build-type: "MinSizeRel"

steps:
Expand All @@ -53,7 +52,7 @@ jobs:
cd ..
git clone https://github.com/InsightSoftwareConsortium/ITK.git
cd ITK
git checkout ${{ matrix.itk-git-tag }}
git checkout ${{ env.itk-git-tag }}
- name: Build ITK
if: matrix.os != 'windows-2019'
Expand Down Expand Up @@ -141,8 +140,6 @@ jobs:
max-parallel: 2
matrix:
python-version: [37, 38, 39, 310]
include:
- itk-python-git-tag: "v5.3rc04"

steps:
- uses: actions/checkout@v2
Expand All @@ -168,7 +165,7 @@ jobs:
- name: 'Build 🐍 Python 📦 package'
run: |
export ITK_PACKAGE_VERSION=${{ matrix.itk-python-git-tag }}
export ITK_PACKAGE_VERSION=${{ env.itk-wheel-tag }}
git clone https://github.com/InsightSoftwareConsortium/ITKBSplineGradient.git
cp ./dockcross-manylinux-download-cache-and-build-module-wheels.sh ./ITKBSplineGradient
pushd ITKBSplineGradient
Expand Down Expand Up @@ -218,9 +215,6 @@ jobs:
runs-on: macos-10.15
strategy:
max-parallel: 2
matrix:
include:
- itk-python-git-tag: "v5.3rc04"

steps:
- uses: actions/checkout@v2
Expand All @@ -239,7 +233,7 @@ jobs:
- name: 'Build 🐍 Python 📦 package'
run: |
export ITK_PACKAGE_VERSION=${{ matrix.itk-python-git-tag }}
export ITK_PACKAGE_VERSION=${{ env.itk-wheel-tag }}
export MACOSX_DEPLOYMENT_TARGET=10.9
git clone https://github.com/InsightSoftwareConsortium/ITKBSplineGradient
cp ./macpython-download-cache-and-build-module-wheels.sh ITKBSplineGradient/
Expand Down Expand Up @@ -281,8 +275,6 @@ jobs:
max-parallel: 2
matrix:
python-version-minor: [7, 8, 9, 10]
include:
- itk-python-git-tag: "v5.3rc04"

steps:
- name: Get specific version of CMake, Ninja
Expand All @@ -303,7 +295,7 @@ jobs:
run: |
mv im ../../
cd ../../im
curl -L "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${{ matrix.itk-python-git-tag }}/ITKPythonBuilds-windows.zip" -o "ITKPythonBuilds-windows.zip"
curl -L "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${{ env.itk-wheel-tag }}/ITKPythonBuilds-windows.zip" -o "ITKPythonBuilds-windows.zip"
7z x ITKPythonBuilds-windows.zip -o/c/P -aoa -r
curl -L "https://data.kitware.com/api/v1/file/5c0ad59d8d777f2179dd3e9c/download" -o "doxygen-1.8.11.windows.bin.zip"
7z x doxygen-1.8.11.windows.bin.zip -o/c/P/doxygen -aoa -r
Expand Down

0 comments on commit 06732c0

Please sign in to comment.