Skip to content

How do I install bash on my Windows local runner? #25038

Answered by dakale
FigBug asked this question in Actions
Discussion options

You must be logged in to vote

WSL bash will not work because it runs relative to the WSL filesystem, and the temporary script that is created exists on the host’s (Windows) filesystem

Actually, the bash on Windows for GitHub hosted machines is provided via Git Bash (packaged with Git for Windows), but more specifically this version of bash I believe comes from MSYS which you could install on your Windows machines to get bash (and other GNU utilities)

Alternatively you can use a shell other than bash, such as cmd or powershell, which will be installed by default on your Windows machines, see the docs on that here:

https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants