actions / setup-dotnet

Set up your GitHub Actions workflow with a specific version of the .NET core sdk
MIT License
943 stars 461 forks source link

Install runtime only #476

Open nikolai-laevskii opened 11 months ago

nikolai-laevskii commented 11 months ago

Description: Added ability to select to install runtime only instead of SDK. It utilizes built-in features of the dotnet-install script by conditionally passing -Runtime/--runtime flag.

Related issue: https://github.com/actions/setup-dotnet/issues/352

Check list:

IvanZosimov commented 11 months ago

@nikolai-laevskii, I'd also incorporate information about the new input to the README file. Also, there is a failed check https://github.com/actions/setup-dotnet/actions/runs/6556781112/job/17807271424?pr=476

VAllens commented 2 months ago

This switch is cool, but I have another opposite idea, add a sdk-only switch. Right now by default the runtime is always installed first, then the sdk. When one wishes to install sdk only, there's really no need to install runtime separately before, since sdk already includes runtime.