From b5e126f4c7a859d27e209b3b4d049e50104c6ea1 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Wed, 14 Feb 2024 01:46:48 +0200 Subject: [PATCH] Better mono setup on Windows --- .../test-setup-mono-windows/action.yml | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/.github/actions/test-setup-mono-windows/action.yml b/.github/actions/test-setup-mono-windows/action.yml index 21df55e3..f7f84aeb 100644 --- a/.github/actions/test-setup-mono-windows/action.yml +++ b/.github/actions/test-setup-mono-windows/action.yml @@ -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}}