summaryrefslogblamecommitdiff
path: root/.github/workflows/execute_installer.ps1
blob: 9d9f5cfbebbef47b93ed7c15ef56dbbdb0237e45 (plain) (tree)
1
2
3
4
5
6
7






                                                                                        
$ proc = Start-Process  ${{ env.spack_installer }}\spack.exe "/install /quiet" -Passthru
$handle = $proc.Handle # cache proc.Handle
$proc.WaitForExit();

if ($proc.ExitCode -ne 0) {
    Write-Warning "$_ exited with status code $($proc.ExitCode)"
}