Skip to content

windows-check.yml: use powershell, not bash - #393

Merged
thcp merged 1 commit into
mainfrom
fix-windows-check-shell
Aug 17, 2026
Merged

windows-check.yml: use powershell, not bash#393
thcp merged 1 commit into
mainfrom
fix-windows-check-shell

Conversation

@thcp

@thcp thcp commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

`windows-check.yml`'s first real run failed immediately on `cargo fmt --check` with `bash: ...sh: No such file or directory` - not a real formatting issue, an infrastructure one. `shell: bash` on this self-hosted Windows runner mangles the auto-generated temp script's Windows-style path (backslashes stripped). `windows-release.yml`'s own steps already use `shell: powershell` for exactly this reason; this workflow copied `macos-check.yml`'s bash default without adjusting for the platform.

Test plan

Purely CI config. Will dispatch `windows-check.yml` against `main` after merging to confirm it actually runs clean this time.

bash on this self-hosted Windows runner mangles the auto-generated temp
script's path (backslashes stripped), the same thing windows-release.yml's
own steps already worked around by using powershell. Copied macos-check.yml's
shell: bash default without adjusting for the platform - caught by this
workflow's own first real run (exit 1 on cargo fmt --check, before it even
reached the code).
@thcp
thcp merged commit 2dcebfc into main Aug 17, 2026
10 checks passed
@thcp
thcp deleted the fix-windows-check-shell branch August 17, 2026 22:14
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.

1 participant