Add support for installing .NET runtimes alongside SDKs (#806)

* Add support for installing .NET runtimes alongside SDKs

* Add tests for preview runtime pairing and fallback logic in installer
This commit is contained in:
v-mahabaleshwars
2026-11-20 19:43:57 +05:30
committed by GitHub
parent 0f4a354dd5
commit 84bc3a3451
8 changed files with 821 additions and 40 deletions

View File

@@ -12,6 +12,32 @@ on:
- '**.md'
jobs:
test-runtime-only:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Clear toolcache
shell: pwsh
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
- name: Setup dotnet runtime 8.0.11
uses: ./
with:
dotnet-runtime: 8.0.11
- name: Verify dotnet runtimes
shell: pwsh
run: |
$runtimes = dotnet --list-runtimes
foreach ($runtime in 'Microsoft.NETCore.App', 'Microsoft.AspNetCore.App') {
if (-not ($runtimes -like "$runtime 8.0.11 *")) {
throw "$runtime 8.0.11 was not installed."
}
}
test-setup-multiple-versions:
runs-on: ${{ matrix.operating-system }}
strategy: