Skip to content

COMP: Add shell: bash to Download ITK step for Windows#131

Merged
hjmjohnson merged 1 commit intoInsightSoftwareConsortium:mainfrom
hjmjohnson:fix-download-itk-shell-main
Apr 15, 2026
Merged

COMP: Add shell: bash to Download ITK step for Windows#131
hjmjohnson merged 1 commit intoInsightSoftwareConsortium:mainfrom
hjmjohnson:fix-download-itk-shell-main

Conversation

@hjmjohnson
Copy link
Copy Markdown
Member

Backport of #130 to main. Fix Windows CI failure introduced by #128.

The Download ITK step uses $ITK_BUILD_ROOT (bash syntax) without shell: bash, so on Windows it runs in pwsh where the variable is undefined and cd is a no-op.

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.
@hjmjohnson hjmjohnson marked this pull request as ready for review April 15, 2026 19:34
@hjmjohnson hjmjohnson merged commit 8056164 into InsightSoftwareConsortium:main Apr 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants