mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 10:28:00 +08:00
[macos] prepare repository for ARM64 arch (#7396)
This commit is contained in:
@@ -39,6 +39,15 @@ download_with_retries() {
|
||||
return 1
|
||||
}
|
||||
|
||||
is_VenturaArm64() {
|
||||
arch=$(get_arch)
|
||||
if [ "$OSTYPE" = "darwin22" ] && [ $arch = "arm64" ]; then
|
||||
true
|
||||
else
|
||||
false
|
||||
fi
|
||||
}
|
||||
|
||||
is_Ventura() {
|
||||
if [ "$OSTYPE" = "darwin22" ]; then
|
||||
true
|
||||
@@ -213,3 +222,12 @@ get_github_package_download_url() {
|
||||
close_finder_window() {
|
||||
osascript -e 'tell application "Finder" to close windows'
|
||||
}
|
||||
|
||||
get_arch() {
|
||||
arch=$(arch)
|
||||
if [[ $arch == "arm64" ]]; then
|
||||
echo "arm64"
|
||||
else
|
||||
echo "x64"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user