mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[macOS] prepare helpers for macOS 13 (#7071)
This commit is contained in:
@@ -34,6 +34,7 @@ function Get-OSVersion {
|
|||||||
IsCatalina = $osVersionMajorMinor -eq "10.15"
|
IsCatalina = $osVersionMajorMinor -eq "10.15"
|
||||||
IsBigSur = $osVersion.Version.Major -eq "11"
|
IsBigSur = $osVersion.Version.Major -eq "11"
|
||||||
IsMonterey = $osVersion.Version.Major -eq "12"
|
IsMonterey = $osVersion.Version.Major -eq "12"
|
||||||
|
IsVentura = $osVersion.Version.Major -eq "13"
|
||||||
IsLessThanMonterey = $osVersion.Version.Major -lt "12"
|
IsLessThanMonterey = $osVersion.Version.Major -lt "12"
|
||||||
IsHigherThanCatalina = $osVersion.Version.Major -ge "11"
|
IsHigherThanCatalina = $osVersion.Version.Major -ge "11"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,14 @@ download_with_retries() {
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
is_Ventura() {
|
||||||
|
if [ "$OSTYPE" = "darwin22" ]; then
|
||||||
|
true
|
||||||
|
else
|
||||||
|
false
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
is_Monterey() {
|
is_Monterey() {
|
||||||
if [ "$OSTYPE" = "darwin21" ]; then
|
if [ "$OSTYPE" = "darwin21" ]; then
|
||||||
true
|
true
|
||||||
@@ -114,6 +122,8 @@ get_brew_os_keyword() {
|
|||||||
echo "big_sur"
|
echo "big_sur"
|
||||||
elif is_Monterey; then
|
elif is_Monterey; then
|
||||||
echo "monterey"
|
echo "monterey"
|
||||||
|
elif is_Ventura; then
|
||||||
|
echo "ventura"
|
||||||
else
|
else
|
||||||
echo "null"
|
echo "null"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user