From 85e2d08f18119dff42124beab11b634dd3aec9fc Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Mon, 7 Sep 2026 05:15:35 -0700 Subject: [PATCH] ci: fix Windows step shell -- use powershell, not pwsh 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 Claude-Session: https://claude.ai/code/session_01RL8abRmgFXkVASHkkqiJbE --- .gitea/workflows/build.yml | 6 +++++- .gitea/workflows/release.yml | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 6794994..96643ba 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -93,7 +93,11 @@ jobs: uses: lukka/get-cmake@latest - 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 - name: Upload plugin diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 673766e..cb66b3f 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -131,11 +131,14 @@ jobs: uses: lukka/get-cmake@latest - 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 - name: Package archive - shell: pwsh + shell: powershell run: | $ErrorActionPreference = "Stop" $out = "streamer-tools-camera-$env:GITEA_REF_NAME-windows-x64.zip"