Skip to content

Commit 8343dc8

Browse files
committed
github actions: Fix ITK download; source and install path; add output on itk/vtk src/bin dir size
1 parent 450ce65 commit 8343dc8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/codeql.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494
cmake --build . --config ${{env.BUILD_TYPE}} -j 4
9595
cmake --install . --config ${{env.BUILD_TYPE}}
9696
cd ../..
97+
du -sh vtk
9798
rm -r vtk
9899
ls -al vtk-9.4.1
99100
du -sh vtk-9.4.1
@@ -113,15 +114,17 @@ jobs:
113114
name: ITK download, extract, configure, build, install (potentially use cached version)
114115
run: |
115116
mkdir -p ${{github.workspace}}/itk
116-
curl https://github.com/InsightSoftwareConsortium/ITK/releases/download/v5.4.0/InsightToolkit-5.4.0.tar.gz --output ${{github.workspace}}/itk/src-5.4.0.tar.gz
117+
# some redirect is happening - use -L to allow for that!
118+
curl -L https://github.com/InsightSoftwareConsortium/ITK/releases/download/v5.4.0/InsightToolkit-5.4.0.tar.gz --output ${{github.workspace}}/itk/src-5.4.0.tar.gz
117119
cd ${{github.workspace}}/itk
118120
tar -xvzf src-5.4.0.tar.gz
119121
mkdir bin-5.4.0
120122
cd bin-5.4.0
121-
cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{env.ITK_CMAKE_OPTIONS}} -DVTK_DIR:PATH=${{github.workspace}}/vtk-9.4.1 -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/InsightToolkit-5.4.0 ../src-5.4.0
123+
cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{env.ITK_CMAKE_OPTIONS}} -DVTK_DIR:PATH=${{github.workspace}}/vtk-9.4.1 -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/itk-5.4.0 ../InsightToolkit-5.4.0
122124
cmake --build . --config ${{env.BUILD_TYPE}} -j 4
123125
cmake --install . --config ${{env.BUILD_TYPE}}
124126
cd ../..
127+
du -sh itk
125128
rm -r itk
126129
ls -al itk-5.4.0
127130
du -sh itk-5.4.0

0 commit comments

Comments
 (0)