summaryrefslogtreecommitdiff
path: root/.github/workflows/execute_installer.ps1
diff options
context:
space:
mode:
authorJohn Parent <john.parent@kitware.com>2022-01-25 17:29:17 -0500
committerPeter Scheibel <scheibel1@llnl.gov>2022-03-17 09:01:01 -0700
commit90c773488c59e57c19ecca5635c1ae7f70e56076 (patch)
tree92afff7ea0751cb9b3a41bd33ded560b5c00fe82 /.github/workflows/execute_installer.ps1
parente65d3d14b4a7a9a9667b006bea1f9f2eafc69472 (diff)
downloadspack-90c773488c59e57c19ecca5635c1ae7f70e56076.tar.gz
spack-90c773488c59e57c19ecca5635c1ae7f70e56076.tar.bz2
spack-90c773488c59e57c19ecca5635c1ae7f70e56076.tar.xz
spack-90c773488c59e57c19ecca5635c1ae7f70e56076.zip
Add Github Actions for Windows (#24504)
Setup Installer CI (#25184), (#25191) Co-authored-by: Zack Galbreath <zack.galbreath@kitware.com> Co-authored-by: lou.lawrence@kitware.com <lou.lawrence@kitware.com> Co-authored-by: Betsy McPhail <betsy.mcphail@kitware.com>
Diffstat (limited to '.github/workflows/execute_installer.ps1')
-rw-r--r--.github/workflows/execute_installer.ps17
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/execute_installer.ps1 b/.github/workflows/execute_installer.ps1
new file mode 100644
index 0000000000..9d9f5cfbeb
--- /dev/null
+++ b/.github/workflows/execute_installer.ps1
@@ -0,0 +1,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)"
+}