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:
@@ -39,6 +39,14 @@ download_with_retries() {
|
||||
return 1
|
||||
}
|
||||
|
||||
is_Ventura() {
|
||||
if [ "$OSTYPE" = "darwin22" ]; then
|
||||
true
|
||||
else
|
||||
false
|
||||
fi
|
||||
}
|
||||
|
||||
is_Monterey() {
|
||||
if [ "$OSTYPE" = "darwin21" ]; then
|
||||
true
|
||||
@@ -114,6 +122,8 @@ get_brew_os_keyword() {
|
||||
echo "big_sur"
|
||||
elif is_Monterey; then
|
||||
echo "monterey"
|
||||
elif is_Ventura; then
|
||||
echo "ventura"
|
||||
else
|
||||
echo "null"
|
||||
fi
|
||||
@@ -147,7 +157,7 @@ should_build_from_source() {
|
||||
# Use the '--build-from-source' option to build from source in this case
|
||||
brew_smart_install() {
|
||||
local tool_name=$1
|
||||
|
||||
|
||||
local os_name=$(get_brew_os_keyword)
|
||||
if [[ "$os_name" == "null" ]]; then
|
||||
echo "$OSTYPE is unknown operating system"
|
||||
|
||||
Reference in New Issue
Block a user