mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Add macOS 12 image templates (#4062)
This commit is contained in:
@@ -39,6 +39,14 @@ download_with_retries() {
|
||||
return 1
|
||||
}
|
||||
|
||||
is_Monterey() {
|
||||
if [ "$OSTYPE" = "darwin21" ]; then
|
||||
true
|
||||
else
|
||||
false
|
||||
fi
|
||||
}
|
||||
|
||||
is_BigSur() {
|
||||
if [ "$OSTYPE" = "darwin20" ]; then
|
||||
true
|
||||
@@ -87,6 +95,14 @@ is_Less_BigSur() {
|
||||
fi
|
||||
}
|
||||
|
||||
is_Less_Monterey() {
|
||||
if is_HighSierra || is_Mojave || is_Catalina || is_BigSur; then
|
||||
true
|
||||
else
|
||||
false
|
||||
fi
|
||||
}
|
||||
|
||||
get_toolset_path() {
|
||||
echo "$HOME/image-generation/toolset.json"
|
||||
}
|
||||
@@ -124,6 +140,8 @@ get_brew_os_keyword() {
|
||||
echo "catalina"
|
||||
elif is_BigSur; then
|
||||
echo "big_sur"
|
||||
elif is_Monterey; then
|
||||
echo "monterey"
|
||||
else
|
||||
echo "null"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user