Call main.sh from powershell on Windows to work around windows-11-arm runner bug by taiki-e · Pull Request #1647 · taiki-e/install-action (original) (raw)
Workaround for windows-11-arm runner bug: actions/runner-images#14052.
Fixes #1645
Fixes #1562
Fixes #1472
The issue appears to be bash sometimes failing to start either due to how GHA launches bash or regardless of who to launch bash.
In the former case, just calling bash from powershell should be sufficient (as currently implemented in this PR); in the latter case, I think it would be sufficient to add a way to detect whether bash failed to start (such as creating and checking a temporary file) and then retry a few times.
I haven't encountered this issue in my repositories yet, so it's difficult for me to test whether the former approach is sufficient. (For now, I plan to continually rerun the tests using the windows-11-arm runner in this PR.)
I would appreciate it if anyone who has encountered this issue could help with testing.
cc @wmmc88 @nazar-pc @NobodyXu @deivid-rodriguez