Skip to content

Commit

Permalink
Better mono setup on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas authored Feb 13, 2024
1 parent d46b17b commit b5e126f
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 b5e126f

Please sign in to comment.