Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Better mono setup on Windows #578

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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