Skip to content

Commit 126545b

Browse files
committed
Update windows workflow
1 parent 8d4bbd2 commit 126545b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/exercises.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ jobs:
1717
- name: Install Rakudo Star with msiexec
1818
if: runner.os == 'Windows'
1919
run: >
20-
Invoke-WebRequest https://rakudo.org/latest/star/win -OutFile C:\rakudo-star.msi;
21-
msiexec /a /jm C:\rakudo-star.msi;
22-
echo "C:\rakudo\bin;C:\rakudo\share\perl6\site\bin"
23-
| Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append;
24-
dir C:\;
20+
$file = "rakudo-star.msi"
21+
Invoke-WebRequest https://rakudo.org/latest/star/win -OutFile "$file";
22+
$log = "install.log"
23+
$procMain = Start-Process "msiexec" "/i `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru
24+
$procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru
25+
$procMain.WaitForExit()
26+
$procLog.Kill()
2527
2628
- name: Install Rakudo Star with brew
2729
if: runner.os == 'macOS'

0 commit comments

Comments
 (0)