Skip to content

Commit 8056164

Browse files
committed
COMP: Add shell: bash to Download ITK step for Windows compatibility
The Download ITK step uses $ITK_BUILD_ROOT (bash syntax) but has no explicit shell: directive. On Windows, GitHub Actions defaults to pwsh where $ITK_BUILD_ROOT is undefined (needs $env:ITK_BUILD_ROOT). The cd becomes a no-op, ITK gets cloned into the repo checkout directory instead of the build root, and cmake fails with "source directory does not exist". Adding shell: bash ensures the step uses Git Bash on Windows, where $ITK_BUILD_ROOT correctly reads the environment variable.
1 parent bc8b850 commit 8056164

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/build-test-cxx.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ jobs:
141141
sudo xcode-select -s "/Applications/Xcode_16.2.0.app"
142142
143143
- name: Download ITK
144+
shell: bash
144145
run: |
145146
cd "$ITK_BUILD_ROOT"
146147
git clone https://github.com/InsightSoftwareConsortium/ITK.git

0 commit comments

Comments
 (0)