From 31033f04460795cb493dc3244d2584caa7da8490 Mon Sep 17 00:00:00 2001 From: Daniel Mita Date: Wed, 7 Feb 2024 21:57:43 +0000 Subject: [PATCH 1/6] Fix Windows Rakudo Star Installation --- .github/workflows/exercises.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/exercises.yml b/.github/workflows/exercises.yml index 319667c3..d2f5999a 100644 --- a/.github/workflows/exercises.yml +++ b/.github/workflows/exercises.yml @@ -14,10 +14,11 @@ jobs: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - - name: Install Rakudo Star with choco + - name: Install Rakudo Star with msiexec if: runner.os == 'Windows' run: > - choco install rakudostar; + Invoke-WebRequest https://rakudo.org/latest/star/win -OutFile C:\rakudo-star.msi; + msiexec C:\rakudo-star.msi; echo "C:\rakudo\bin;C:\rakudo\share\perl6\site\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append From 4c533748051811b79f2b9e33ea3b879ff4b4e334 Mon Sep 17 00:00:00 2001 From: Daniel Mita Date: Wed, 7 Feb 2024 22:01:07 +0000 Subject: [PATCH 2/6] Stuff --- .github/workflows/exercises.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/exercises.yml b/.github/workflows/exercises.yml index d2f5999a..45140c07 100644 --- a/.github/workflows/exercises.yml +++ b/.github/workflows/exercises.yml @@ -18,9 +18,10 @@ jobs: if: runner.os == 'Windows' run: > Invoke-WebRequest https://rakudo.org/latest/star/win -OutFile C:\rakudo-star.msi; - msiexec C:\rakudo-star.msi; + msiexec /a /jm C:\rakudo-star.msi; echo "C:\rakudo\bin;C:\rakudo\share\perl6\site\bin" - | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append; + dir C:\rakudo; - name: Install Rakudo Star with brew if: runner.os == 'macOS' From 8d4bbd2f8818740817671ee1f513fb08f57a14f1 Mon Sep 17 00:00:00 2001 From: Daniel Mita Date: Wed, 7 Feb 2024 22:03:14 +0000 Subject: [PATCH 3/6] Directory --- .github/workflows/exercises.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/exercises.yml b/.github/workflows/exercises.yml index 45140c07..666f8776 100644 --- a/.github/workflows/exercises.yml +++ b/.github/workflows/exercises.yml @@ -21,7 +21,7 @@ jobs: msiexec /a /jm C:\rakudo-star.msi; echo "C:\rakudo\bin;C:\rakudo\share\perl6\site\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append; - dir C:\rakudo; + dir C:\; - name: Install Rakudo Star with brew if: runner.os == 'macOS' From 126545b63aebb857b9bd044a22e7234652a88899 Mon Sep 17 00:00:00 2001 From: Daniel Mita Date: Sun, 17 Mar 2024 18:52:58 +0000 Subject: [PATCH 4/6] Update windows workflow --- .github/workflows/exercises.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/exercises.yml b/.github/workflows/exercises.yml index 666f8776..04ec7be4 100644 --- a/.github/workflows/exercises.yml +++ b/.github/workflows/exercises.yml @@ -17,11 +17,13 @@ jobs: - name: Install Rakudo Star with msiexec if: runner.os == 'Windows' run: > - Invoke-WebRequest https://rakudo.org/latest/star/win -OutFile C:\rakudo-star.msi; - msiexec /a /jm C:\rakudo-star.msi; - echo "C:\rakudo\bin;C:\rakudo\share\perl6\site\bin" - | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append; - dir C:\; + $file = "rakudo-star.msi" + Invoke-WebRequest https://rakudo.org/latest/star/win -OutFile "$file"; + $log = "install.log" + $procMain = Start-Process "msiexec" "/i `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru + $procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru + $procMain.WaitForExit() + $procLog.Kill() - name: Install Rakudo Star with brew if: runner.os == 'macOS' From 650dff0bd7cc85dfdff970c4e410776c30043a9c Mon Sep 17 00:00:00 2001 From: Daniel Mita Date: Sun, 17 Mar 2024 18:57:56 +0000 Subject: [PATCH 5/6] Enable windows --- .github/workflows/exercises.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/exercises.yml b/.github/workflows/exercises.yml index 04ec7be4..f136e853 100644 --- a/.github/workflows/exercises.yml +++ b/.github/workflows/exercises.yml @@ -8,7 +8,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: ['ubuntu-22.04', 'macos-14'] + os: ['ubuntu-22.04', 'macos-14', 'windows-2022'] name: Rakudo Star on ${{ matrix.os }} steps: - name: Checkout From 9bff834e62d771cd8cca90094f1958bfdd084e42 Mon Sep 17 00:00:00 2001 From: Daniel Mita Date: Sun, 17 Mar 2024 19:00:14 +0000 Subject: [PATCH 6/6] Semicolons --- .github/workflows/exercises.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/exercises.yml b/.github/workflows/exercises.yml index f136e853..d546d469 100644 --- a/.github/workflows/exercises.yml +++ b/.github/workflows/exercises.yml @@ -17,13 +17,13 @@ jobs: - name: Install Rakudo Star with msiexec if: runner.os == 'Windows' run: > - $file = "rakudo-star.msi" + $file = "rakudo-star.msi"; Invoke-WebRequest https://rakudo.org/latest/star/win -OutFile "$file"; - $log = "install.log" - $procMain = Start-Process "msiexec" "/i `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru - $procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru - $procMain.WaitForExit() - $procLog.Kill() + $log = "install.log"; + $procMain = Start-Process "msiexec" "/i `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru; + $procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru; + $procMain.WaitForExit(); + $procLog.Kill(); - name: Install Rakudo Star with brew if: runner.os == 'macOS'