Skip to content

Commit d88ebec

Browse files
committed
github actions: Always set ITK_DIR (also when retrieved from cache)
1 parent bbc63a6 commit d88ebec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ jobs:
125125
cmake --install . --config ${{env.BUILD_TYPE}}
126126
cd ..
127127
rm -r itk-src-${{ env.ITK_VERSION }} itk-bin-${{ env.ITK_VERSION }}
128+
129+
- if: runner.os == 'Linux'
130+
name: set ITK_DIR (Linux)
131+
run: |
128132
echo "ITK_DIR=${{github.workspace}}/itk-${{ env.ITK_VERSION }}/lib/cmake/ITK-${{ env.ITK_SHORTVER }}" >> "$GITHUB_ENV"
129133
130134
- if: ${{ runner.os == 'Windows' && (steps.cache-itk.outputs.cache-hit != 'true' || steps.cache-itk-src.outputs.cache-hit != 'true') }}
@@ -138,6 +142,10 @@ jobs:
138142
cmake --build . --config ${{env.BUILD_TYPE}} -j 4
139143
cd ..
140144
rm itk-src-${{ env.ITK_VERSION }}.tar.gz
145+
146+
- if: runner.os == 'Windows'
147+
name: set ITK_DIR (Windows)
148+
run: |
141149
echo "ITK_DIR=${{github.workspace}}/itk-${{ env.ITK_VERSION }}" >> "$GITHUB_ENV"
142150
143151
- name: Install npm

0 commit comments

Comments
 (0)