mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Merge pull request #459 from miketimofeev/v-mitim/temporary_disable_net3.102
[Ubuntu] Disable .net SDK 3.1.102 installation part 2
This commit is contained in:
@@ -34,7 +34,12 @@ for latest_package in ${LATEST_DOTNET_PACKAGES[@]}; do
|
|||||||
echo "Determing if .NET Core ($latest_package) is installed"
|
echo "Determing if .NET Core ($latest_package) is installed"
|
||||||
if ! IsInstalled $latest_package; then
|
if ! IsInstalled $latest_package; then
|
||||||
echo "Could not find .NET Core ($latest_package), installing..."
|
echo "Could not find .NET Core ($latest_package), installing..."
|
||||||
|
#temporary avoid 3.1.102 installation due to https://github.com/dotnet/aspnetcore/issues/19133
|
||||||
|
if [ $latest_package != "dotnet-sdk-3.1" ]; then
|
||||||
apt-get install $latest_package -y
|
apt-get install $latest_package -y
|
||||||
|
else
|
||||||
|
apt-get install dotnet-sdk-3.1=3.1.101-1 -y
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo ".NET Core ($latest_package) is already installed"
|
echo ".NET Core ($latest_package) is already installed"
|
||||||
fi
|
fi
|
||||||
@@ -50,15 +55,13 @@ for release_url in ${release_urls[@]}; do
|
|||||||
sdks=("${sdks[@]}" $(echo "${releases}" | jq '.releases[]' | jq '.sdks[]?' | jq '.version'))
|
sdks=("${sdks[@]}" $(echo "${releases}" | jq '.releases[]' | jq '.sdks[]?' | jq '.version'))
|
||||||
done
|
done
|
||||||
|
|
||||||
sortedSdks=$(echo ${sdks[@]} | tr ' ' '\n' | grep -v preview | grep -v rc | grep -v display | cut -d\" -f2 | sort -u -r)
|
#temporary avoid 3.1.102 installation due to https://github.com/dotnet/aspnetcore/issues/19133
|
||||||
|
sortedSdks=$(echo ${sdks[@]} | tr ' ' '\n' | grep -v 3.1.102 | grep -v preview | grep -v rc | grep -v display | cut -d\" -f2 | sort -u -r)
|
||||||
|
|
||||||
for sdk in $sortedSdks; do
|
for sdk in $sortedSdks; do
|
||||||
#temporary avoid 3.1.102 installation due to https://github.com/dotnet/aspnetcore/issues/19133
|
|
||||||
if [ $sdk != "3.1.102" ]; then
|
|
||||||
url="https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$sdk/dotnet-sdk-$sdk-linux-x64.tar.gz"
|
url="https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$sdk/dotnet-sdk-$sdk-linux-x64.tar.gz"
|
||||||
echo "$url" >> urls
|
echo "$url" >> urls
|
||||||
echo "Adding $url to list to download later"
|
echo "Adding $url to list to download later"
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Download additional SDKs
|
# Download additional SDKs
|
||||||
|
|||||||
@@ -42,7 +42,12 @@ for latest_package in ${LATEST_DOTNET_PACKAGES[@]}; do
|
|||||||
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic main" > /etc/apt/sources.list.d/dotnetdev.list'
|
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic main" > /etc/apt/sources.list.d/dotnetdev.list'
|
||||||
apt-get install apt-transport-https
|
apt-get install apt-transport-https
|
||||||
apt-get update
|
apt-get update
|
||||||
|
#temporary avoid 3.1.102 installation due to https://github.com/dotnet/aspnetcore/issues/19133
|
||||||
|
if [ $latest_package != "dotnet-sdk-3.1" ]; then
|
||||||
apt-get install $latest_package -y
|
apt-get install $latest_package -y
|
||||||
|
else
|
||||||
|
apt-get install dotnet-sdk-3.1=3.1.101-1 -y
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo ".NET Core ($latest_package) is already installed"
|
echo ".NET Core ($latest_package) is already installed"
|
||||||
fi
|
fi
|
||||||
@@ -58,15 +63,13 @@ for release_url in ${release_urls[@]}; do
|
|||||||
sdks=("${sdks[@]}" $(echo "${releases}" | jq '.releases[]' | jq '.sdks[]?' | jq '.version'))
|
sdks=("${sdks[@]}" $(echo "${releases}" | jq '.releases[]' | jq '.sdks[]?' | jq '.version'))
|
||||||
done
|
done
|
||||||
|
|
||||||
sortedSdks=$(echo ${sdks[@]} | tr ' ' '\n' | grep -v preview | grep -v rc | grep -v display | cut -d\" -f2 | sort -u -r)
|
#temporary avoid 3.1.102 installation due to https://github.com/dotnet/aspnetcore/issues/19133
|
||||||
|
sortedSdks=$(echo ${sdks[@]} | tr ' ' '\n' | grep -v 3.1.102 | grep -v preview | grep -v rc | grep -v display | cut -d\" -f2 | sort -u -r)
|
||||||
|
|
||||||
for sdk in $sortedSdks; do
|
for sdk in $sortedSdks; do
|
||||||
#temporary avoid 3.1.102 installation due to https://github.com/dotnet/aspnetcore/issues/19133
|
|
||||||
if [ $sdk != "3.1.102" ]; then
|
|
||||||
url="https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$sdk/dotnet-sdk-$sdk-linux-x64.tar.gz"
|
url="https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$sdk/dotnet-sdk-$sdk-linux-x64.tar.gz"
|
||||||
echo "$url" >> urls
|
echo "$url" >> urls
|
||||||
echo "Adding $url to list to download later"
|
echo "Adding $url to list to download later"
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Download additional SDKs
|
# Download additional SDKs
|
||||||
|
|||||||
Reference in New Issue
Block a user