mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-05 07:04:43 +00:00
GitHub CI [Windows, XIMEA]: kill installer forcibly after 300 s
This commit is contained in:
8
.github/scripts/Windows/prepare.ps1
vendored
8
.github/scripts/Windows/prepare.ps1
vendored
@@ -16,7 +16,13 @@ if (!${env:no_cuda}) {
|
||||
}
|
||||
|
||||
# Install XIMEA
|
||||
Start-Process -FilePath C:\XIMEA_API_Installer.exe -ArgumentList "/S /SecXiApi=ON" -Wait
|
||||
$proc = Start-Process -FilePath C:\XIMEA_API_Installer.exe -ArgumentList "/S /SecXiApi=ON" -PassThru
|
||||
$proc | Wait-Process -Timeout 300 -ErrorAction SilentlyContinue -ErrorVariable timeouted
|
||||
if ($timeouted) {
|
||||
# terminate the process
|
||||
$proc | kill
|
||||
throw "XIMEA install timeout"
|
||||
}
|
||||
|
||||
# Install NDI
|
||||
# TODO: NDI installer opens a manual in a browser and doesn't end, thus StartProcess with -Wait
|
||||
|
||||
Reference in New Issue
Block a user