Skip to content
Closed
Show file tree
Hide file tree
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
12 changes: 11 additions & 1 deletion .github/actions/test-setup-dotnet-windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ inputs:
runs:
using: "composite"
steps:
- name: Get .NET SDK Version
id: get-sdk-version
run: |
$global = Get-Content "${{ github.workspace }}/global.json" -Raw | ConvertFrom-Json;
"version=$($global.sdk.version)" | Out-File -FilePath $env:GITHUB_OUTPUT -Append;
shell: pwsh

- name: Get .NET Channel for ${{inputs.target_framework}}
uses: ./.github/actions/get-dotnet-channel
id: get_channel
Expand All @@ -31,9 +38,12 @@ runs:
- name: Setup .NET ${{inputs.architecture}}
run: |
Invoke-WebRequest 'https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1' -OutFile dotnet-install.ps1;
if ('${{steps.get-sdk-version.outputs.version}}' -ne '') {
.\dotnet-install.ps1 -Version '${{steps.get-sdk-version.outputs.version}}' -SkipNonVersionedFiles -NoPath -Architecture ${{inputs.architecture}} -InstallDir "${{steps.get-program-files.outputs.path}}/dotnet";
}
.\dotnet-install.ps1 -Runtime dotnet -SkipNonVersionedFiles -NoPath -Channel LTS -Architecture ${{inputs.architecture}} -InstallDir "${{steps.get-program-files.outputs.path}}/dotnet";
.\dotnet-install.ps1 -Runtime dotnet -SkipNonVersionedFiles -NoPath -Channel STS -Architecture ${{inputs.architecture}} -InstallDir "${{steps.get-program-files.outputs.path}}/dotnet";

$channel = "${{steps.get_channel.outputs.channel}}";
if ($channel -ne '') {
.\dotnet-install.ps1 -Runtime dotnet -SkipNonVersionedFiles -NoPath -Channel $channel -Architecture ${{inputs.architecture}} -InstallDir "${{steps.get-program-files.outputs.path}}/dotnet";
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-unix-mono.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ jobs:
if: ${{ inputs.image == 'macos-14' && inputs.architecture == 'x64' }}
run: /usr/sbin/softwareupdate --install-rosetta --agree-to-license

- name: Install Mono on macOS
if: ${{ startsWith(inputs.os, 'macos') }}
run: |
brew update
brew install mono

- name: Install Mono on Ubuntu
if: runner.os == 'Linux'
run: |
Expand Down
Loading