Skip to content

Commit 6c50e8a

Browse files
committed
whoops, GitHub apparently ends if any of the commands in the PowerShell script fail. I had some dir listings relvant to gitlab left over, and this caused the entire job to fail in 13s
Directory: D:\a\cross-platform-python-gui\cross-platform-python-gui Mode LastWriteTime Length Name ---- ------------- ------ ---- d--h-- 5/31/2020 9:12 PM .git d----- 5/31/2020 9:12 PM .github d----- 5/31/2020 9:12 PM build d----- 5/31/2020 9:12 PM src -a---- 5/31/2020 9:12 PM 35787 LICENSE -a---- 5/31/2020 9:12 PM 956 README.md -a---- 5/31/2020 9:12 PM 6 requirements.txt DEBUG: 34+ >>>> Write-Output 'INFO: Beginning execution' INFO: Beginning execution DEBUG: 36+ >>>> Write-Output "INFO: Inspect gitlab's python version" INFO: Inspect gitlab's python version DEBUG: 37+ >>>> Get-ChildItem -Path C:\Users\gitlab_runner -Force | Out-String Get-ChildItem : Cannot find path 'C:\Users\gitlab_runner' because it does not exist. At D:\a\cross-platform-python-gui\cross-platform-python-gui\build\windows\buildExe.ps1:37 char:1 + Get-ChildItem -Path C:\Users\gitlab_runner -Force | Out-String + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (C:\Users\gitlab_runner:String) [Get-ChildItem], ItemNotFoundException + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand ##[error]Process completed with exit code 1. Let's remove those lines and try again..
1 parent 9ce1252 commit 6c50e8a

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
steps:
3232
- uses: actions/checkout@v2
3333

34-
- name: Execute script to build linux AppImage
34+
- name: Execute script to .exe in Windows
3535
run: "build/windows/buildExe.ps1"
3636
shell: powershell
3737

build/windows/buildExe.ps1

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,6 @@ Get-ChildItem -Force | Out-String
3333

3434
Write-Output 'INFO: Beginning execution'
3535

36-
Write-Output "INFO: Inspect gitlab's python version"
37-
Get-ChildItem -Path C:\Users\gitlab_runner -Force | Out-String
38-
Get-ChildItem -Path C:\Users\gitlab_runner\AppData -Force | Out-String
39-
Get-ChildItem -Path C:\Users\gitlab_runner\AppData\Roaming -Force | Out-String
40-
Get-ChildItem -Path C:\Users\gitlab_runner\AppData\Roaming\Python -Force | Out-String
41-
Get-ChildItem -Path C:\Users\gitlab_runner\AppData\Roaming\Python\Python37 -Force | Out-String
42-
Get-ChildItem -Path C:\Users\gitlab_runner\AppData\Roaming\Python\Python37\Scripts -Force | Out-String
43-
4436
###################
4537
# INSTALL DEPENDS #
4638
###################

0 commit comments

Comments
 (0)