Skip to content

Commit

Permalink
Better mono setup on Windows (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas authored Feb 14, 2024
1 parent f3d3122 commit 32e3f7b
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions .github/actions/test-setup-mono-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,8 @@ outputs:
runs:
using: "composite"
steps:
- name: Setup Mono x86 Manually
if: inputs.architecture == 'x86'
run: |
curl -L https://download.mono-project.com/archive/mono-latest-x86-preview.msi -o mono.msi;
$file = "mono.msi"
$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()
shell: pwsh

- name: Setup Mono x64 Manually
if: inputs.architecture == 'x64'
run: |
curl -L https://download.mono-project.com/archive/mono-latest-x64-preview.msi -o mono.msi;
$file = "mono.msi"
$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: Setup Mono
run: choco install mono --yes --no-progress --${{inputs.architecture}} --ignore-checksums
shell: pwsh

- name: Get Program Files path for ${{inputs.architecture}}
Expand Down

0 comments on commit 32e3f7b

Please sign in to comment.