Skip to content

Commit ad08df1

Browse files
committed
[skip ci] Adding exit code check
1 parent 6ae0ef6 commit ad08df1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/windows-installer.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
type setup.log
7272
dir
7373
- name: Exec Sagittarius
74+
working-directory: ${{ steps.extract.outputs.build_dir }}
7475
shell: pwsh
7576
run: |
7677
if ("${{ matrix.arch }}" -eq "x86") {
@@ -79,7 +80,10 @@ jobs:
7980
$sash = "$($Env:ProgramFiles)\Sagittarius\sash.exe"
8081
}
8182
Write-Output $sash
82-
Start-Process -FilePath $sash -ArgumentList '-Einfo', ".\example\net\http-client0.scm" -Wait -NoNewWindow
83+
$proc = Start-Process -FilePath $sash -ArgumentList '-Einfo', ".\example\net\http-client0.scm" -Wait -NoNewWindow -PassThru
84+
if ($proc.ExitCode -ne 0) {
85+
throw "Failed to execute sanity check(s)"
86+
}
8387
- name: Upload installer
8488
id: upload-windows-installer
8589
uses: actions/upload-artifact@v6

0 commit comments

Comments
 (0)