mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
[ubuntu] installing the latest .NET sdk patch version for every feature version (#3550)
* installing the latest patch version for every feature version * simplify versions computing * fix space Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
This commit is contained in:
@@ -36,7 +36,8 @@ for version in ${DOTNET_VERSIONS[@]}; do
|
||||
rm ./${version}.json
|
||||
done
|
||||
|
||||
sortedSdks=$(echo ${sdks[@]} | tr ' ' '\n' | grep -v preview | grep -v rc | grep -v display | cut -d\" -f2 | sort -u -r)
|
||||
sortedSdks=$(echo ${sdks[@]} | tr ' ' '\n' | grep -v preview | grep -v rc | grep -v display | cut -d\" -f2 | sort -r | uniq -w 5)
|
||||
|
||||
extract_dotnet_sdk() {
|
||||
local ARCHIVE_NAME="$1"
|
||||
set -e
|
||||
@@ -66,4 +67,4 @@ setEtcEnvironmentVariable DOTNET_NOLOGO 1
|
||||
setEtcEnvironmentVariable DOTNET_MULTILEVEL_LOOKUP 0
|
||||
prependEtcEnvironmentPath '$HOME/.dotnet/tools'
|
||||
|
||||
invoke_tests "DotnetSDK"
|
||||
invoke_tests "DotnetSDK"
|
||||
|
||||
Reference in New Issue
Block a user