ci: fix Windows step shell -- use powershell, not pwsh
Build / macOS (macos-latest) (push) Successful in 36s
Build / Linux (ubuntu-24.04) (push) Successful in 1m1s
Build / Windows (windows-latest) (push) Failing after 9m20s

Real verification push (2b216d3) caught this: explicitly setting
shell: pwsh made the Windows job fail immediately with "Cannot find:
pwsh in PATH". winvm-builder only has the in-box Windows PowerShell 5.1
(powershell.exe), not PowerShell Core -- which is exactly why the original
inline build.yml steps never set `shell:` at all and just relied on the
implicit default. Switched both workflows' Windows steps to
`shell: powershell` explicitly instead of leaving it implicit, so future
edits can't reintroduce this by copying a pwsh example from elsewhere.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RL8abRmgFXkVASHkkqiJbE
This commit is contained in:
2026-09-07 05:15:35 -07:00
co-authored by Claude Sonnet 5
parent 2b216d3d75
commit 85e2d08f18
2 changed files with 10 additions and 3 deletions
+5 -1
View File
@@ -93,7 +93,11 @@ jobs:
uses: lukka/get-cmake@latest uses: lukka/get-cmake@latest
- name: Configure, build, test, verify - name: Configure, build, test, verify
shell: pwsh # Windows PowerShell (powershell.exe), not PowerShell Core (pwsh) --
# this self-hosted runner does not have pwsh installed, only the
# in-box Windows PowerShell 5.1 the original inline steps implicitly
# ran under.
shell: powershell
run: ./.gitea/scripts/windows-build.ps1 run: ./.gitea/scripts/windows-build.ps1
- name: Upload plugin - name: Upload plugin
+5 -2
View File
@@ -131,11 +131,14 @@ jobs:
uses: lukka/get-cmake@latest uses: lukka/get-cmake@latest
- name: Configure, build, test, verify - name: Configure, build, test, verify
shell: pwsh # Windows PowerShell (powershell.exe), not PowerShell Core (pwsh) --
# this self-hosted runner does not have pwsh installed. See the same
# note in build.yml.
shell: powershell
run: ./.gitea/scripts/windows-build.ps1 run: ./.gitea/scripts/windows-build.ps1
- name: Package archive - name: Package archive
shell: pwsh shell: powershell
run: | run: |
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
$out = "streamer-tools-camera-$env:GITEA_REF_NAME-windows-x64.zip" $out = "streamer-tools-camera-$env:GITEA_REF_NAME-windows-x64.zip"