Skip to content

Commit 971872d

Browse files
committed
the last windows build failed because PyInstall exited with a (non-critical?) error. It does that during the build process, and it doesn't matter on my builds on gitlab.
What *does* matter is that GitHub apparenlty injects the following line to the top of all powershell scripts per https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference $ErrorActionPreference = 'stop' The fix is apparently to define a custom shell, not 'powershell' to prevent this. Let's try it.
1 parent f7cb981 commit 971872d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
- name: Execute script to .exe in Windows
4545
run: "build/windows/buildExe.ps1"
46-
shell: powershell
46+
shell: powershell -Command "& '{0}'"
4747

4848
- uses: actions/upload-artifact@v2
4949
with:

0 commit comments

Comments
 (0)