@@ -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 : " 7548a390d71dc25b80e792703ee3cfea17853a99 "
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 : " 7548a390d71dc25b80e792703ee3cfea17853a99 "
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 : " 7548a390d71dc25b80e792703ee3cfea17853a99 "
2727 cmake-build-type : " MinSizeRel"
2828
2929 steps :
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 ..
7679 operating_system="${{ matrix.os }}"
7780 cat > dashboard.cmake << EOF
7881 set(CTEST_SITE "GitHubActions")
79- file(TO_CMAKE_PATH "$ {GITHUB_WORKSPACE}/.." CTEST_DASHBOARD_ROOT)
80- file(TO_CMAKE_PATH "$ {GITHUB_WORKSPACE}/" CTEST_SOURCE_DIRECTORY)
81- file(TO_CMAKE_PATH "$ {GITHUB_WORKSPACE}/../build" CTEST_BINARY_DIRECTORY)
82+ file(TO_CMAKE_PATH "\$ENV {GITHUB_WORKSPACE}/.." CTEST_DASHBOARD_ROOT)
83+ file(TO_CMAKE_PATH "\$ENV {GITHUB_WORKSPACE}/" CTEST_SOURCE_DIRECTORY)
84+ file(TO_CMAKE_PATH "\$ENV {GITHUB_WORKSPACE}/../build" CTEST_BINARY_DIRECTORY)
8285 set(dashboard_source_name "${GITHUB_REPOSITORY}")
8386 if(ENV{GITHUB_REF} MATCHES "master")
8487 set(branch "-master")
@@ -117,13 +120,13 @@ jobs:
117120 - name : Build and test
118121 if : matrix.os != 'windows-2019'
119122 run : |
120- ctest -j 2 -V -S dashboard.cmake
123+ ctest --output-on-failure - j 2 -V -S dashboard.cmake
121124
122125 - name : Build and test
123126 if : matrix.os == 'windows-2019'
124127 run : |
125128 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
126- ctest -j 2 -V -S dashboard.cmake
129+ ctest --output-on-failure - j 2 -V -S dashboard.cmake
127130 shell : cmd
128131
129132 build-linux-python-packages :
@@ -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.2rc03 "
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.2rc03 "
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.2rc03 "
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 ../../
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,17 +239,18 @@ 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
228246 set CXX=cl.exe
229- C:\Python3${{ matrix.python-version-minor }}-x64\python.exe C:\P\IPP\scripts\windows_build_module_wheels.py --py-envs "3${{ matrix.python-version-minor }}-x64"
247+ C:\Python3${{ matrix.python-version-minor }}-x64\python.exe C:\P\IPP\scripts\windows_build_module_wheels.py --py-envs "3${{ matrix.python-version-minor }}-x64" --no-cleanup
230248
231249 - name : Publish Python package as GitHub Artifact
232250 uses : actions/upload-artifact@v1
233251 with :
234- name : WindowWheel3 .${{ matrix.python-version-minor }}
235- path : dist
252+ name : WindowsWheel3 .${{ matrix.python-version-minor }}
253+ path : ../../im/ dist
236254
237255 publish-python-packages-to-pypi :
238256 needs :
0 commit comments