Skip to content

Commit bbc63a6

Browse files
committed
github actions: Fix ITK_DIR for Windows
1 parent a9789a4 commit bbc63a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ jobs:
125125
cmake --install . --config ${{env.BUILD_TYPE}}
126126
cd ..
127127
rm -r itk-src-${{ env.ITK_VERSION }} itk-bin-${{ env.ITK_VERSION }}
128+
echo "ITK_DIR=${{github.workspace}}/itk-${{ env.ITK_VERSION }}/lib/cmake/ITK-${{ env.ITK_SHORTVER }}" >> "$GITHUB_ENV"
128129
129130
- if: ${{ runner.os == 'Windows' && (steps.cache-itk.outputs.cache-hit != 'true' || steps.cache-itk-src.outputs.cache-hit != 'true') }}
130131
# ITK install is currently broken on Windows, see https://discourse.itk.org/t/7414
@@ -137,6 +138,7 @@ jobs:
137138
cmake --build . --config ${{env.BUILD_TYPE}} -j 4
138139
cd ..
139140
rm itk-src-${{ env.ITK_VERSION }}.tar.gz
141+
echo "ITK_DIR=${{github.workspace}}/itk-${{ env.ITK_VERSION }}" >> "$GITHUB_ENV"
140142
141143
- name: Install npm
142144
uses: actions/setup-node@v4
@@ -156,7 +158,7 @@ jobs:
156158
run: |
157159
mkdir bin
158160
cd bin
159-
cmake -B . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{env.OPENIA_CMAKE_OPTIONS}} -DITK_DIR=${{github.workspace}}/itk-${{ env.ITK_VERSION }}/lib/cmake/ITK-${{ env.ITK_SHORTVER }} ..
161+
cmake -B . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{env.OPENIA_CMAKE_OPTIONS}} -DITK_DIR=${{env.ITK_DIR}} ..
160162
cmake --build . --config ${{env.BUILD_TYPE}} -j 4
161163
cmake --install . --config ${{env.BUILD_TYPE}} --prefix ${{github.workspace}}/install
162164

0 commit comments

Comments
 (0)