mirror of
https://github.com/actions/runner-images.git
synced 2026-01-04 09:13:33 +08:00
Merge pull request #1995 from dibir-magomedsaygitov/v-dimago/add-dotnet-core-5.0-macos
[macOS] Move list of .Net Core versions to install to toolset
This commit is contained in:
@@ -19,35 +19,20 @@ chmod +x ./dotnet-install.sh
|
|||||||
ARGS_LIST=()
|
ARGS_LIST=()
|
||||||
echo "Parsing dotnet SDK (except rc and preview versions) from .json..."
|
echo "Parsing dotnet SDK (except rc and preview versions) from .json..."
|
||||||
|
|
||||||
# TO-DO: move the list of versions to install to toolset
|
DOTNET_VERSIONS=($(get_toolset_value '.dotnet.versions | .[]'))
|
||||||
if is_BigSur; then
|
|
||||||
DOTNET_CHANNELS=(
|
|
||||||
'https://raw.githubusercontent.com/dotnet/core/master/release-notes/2.1/releases.json'
|
|
||||||
'https://raw.githubusercontent.com/dotnet/core/master/release-notes/3.1/releases.json'
|
|
||||||
)
|
|
||||||
elif is_Less_Catalina; then
|
|
||||||
DOTNET_CHANNELS=(
|
|
||||||
'https://raw.githubusercontent.com/dotnet/core/master/release-notes/2.1/releases.json'
|
|
||||||
)
|
|
||||||
else
|
|
||||||
DOTNET_CHANNELS=(
|
|
||||||
'https://raw.githubusercontent.com/dotnet/core/master/release-notes/2.1/releases.json'
|
|
||||||
'https://raw.githubusercontent.com/dotnet/core/master/release-notes/3.0/releases.json'
|
|
||||||
'https://raw.githubusercontent.com/dotnet/core/master/release-notes/3.1/releases.json'
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
for DOTNET_CHANNEL in "${DOTNET_CHANNELS[@]}"; do
|
for DOTNET_VERSION in "${DOTNET_VERSIONS[@]}"; do
|
||||||
|
RELEASE_URL="https://raw.githubusercontent.com/dotnet/core/master/release-notes/${DOTNET_VERSION}/releases.json"
|
||||||
# Old Mono versions don't support NuGet versions from .Net sdk >=2.1.6**, exclude them explicitly from Mojave and HS images
|
# Old Mono versions don't support NuGet versions from .Net sdk >=2.1.6**, exclude them explicitly from Mojave and HS images
|
||||||
# https://rider-support.jetbrains.com/hc/en-us/articles/360004180039
|
# https://rider-support.jetbrains.com/hc/en-us/articles/360004180039
|
||||||
if is_Less_Catalina; then
|
if is_Less_Catalina; then
|
||||||
ARGS_LIST+=(
|
ARGS_LIST+=(
|
||||||
$(curl -s "$DOTNET_CHANNEL" | \
|
$(curl -s "$RELEASE_URL" | \
|
||||||
jq -r '.releases[].sdk."version"' | grep -v -E '\-(preview|rc)\d*' | grep -v -E '2.1.[6-9]\d*')
|
jq -r '.releases[].sdk."version"' | grep -v -E '\-(preview|rc)\d*' | grep -v -E '2.1.[6-9]\d*')
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
ARGS_LIST+=(
|
ARGS_LIST+=(
|
||||||
$(curl -s "$DOTNET_CHANNEL" | \
|
$(curl -s "$RELEASE_URL" | \
|
||||||
jq -r '.releases[].sdk."version"' | grep -v -E '\-(preview|rc)\d*')
|
jq -r '.releases[].sdk."version"' | grep -v -E '\-(preview|rc)\d*')
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -205,5 +205,10 @@
|
|||||||
"package": "yamllint",
|
"package": "yamllint",
|
||||||
"cmd": "yamllint --version"
|
"cmd": "yamllint --version"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"dotnet": {
|
||||||
|
"versions": [
|
||||||
|
"2.1"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -265,5 +265,10 @@
|
|||||||
"package": "yamllint",
|
"package": "yamllint",
|
||||||
"cmd": "yamllint --version"
|
"cmd": "yamllint --version"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"dotnet": {
|
||||||
|
"versions": [
|
||||||
|
"2.1"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -179,5 +179,12 @@
|
|||||||
"package": "yamllint",
|
"package": "yamllint",
|
||||||
"cmd": "yamllint --version"
|
"cmd": "yamllint --version"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"dotnet": {
|
||||||
|
"versions": [
|
||||||
|
"2.1",
|
||||||
|
"3.0",
|
||||||
|
"3.1"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -106,5 +106,11 @@
|
|||||||
"package": "yamllint",
|
"package": "yamllint",
|
||||||
"cmd": "yamllint --version"
|
"cmd": "yamllint --version"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"dotnet": {
|
||||||
|
"versions": [
|
||||||
|
"2.1",
|
||||||
|
"3.1"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user