mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[macos13] Fix preimagedata for arm64 (#8488)
This commit is contained in:
committed by
GitHub
parent
d71a0fe1a5
commit
804736733e
@@ -2,6 +2,7 @@
|
||||
|
||||
source ~/utils/utils.sh
|
||||
|
||||
arch=$(get_arch)
|
||||
imagedata_file="$HOME/imagedata.json"
|
||||
image_version=$(echo $IMAGE_VERSION | cut -d _ -f 2)
|
||||
os_name=$(sw_vers -productName)
|
||||
@@ -9,7 +10,11 @@ os_version=$(sw_vers -productVersion)
|
||||
os_build=$(sw_vers -buildVersion)
|
||||
label_version=$(echo $os_version | cut -d. -f1)
|
||||
|
||||
image_label="macos-${label_version}"
|
||||
if [[ $arch == "arm64" ]]; then
|
||||
image_label="macos-${label_version}-arm64"
|
||||
else
|
||||
image_label="macos-${label_version}"
|
||||
fi
|
||||
release_label="macOS-${label_version}"
|
||||
|
||||
if is_Ventura; then
|
||||
@@ -34,4 +39,4 @@ cat <<EOF > $imagedata_file
|
||||
EOF
|
||||
|
||||
echo "export ImageVersion=$image_version" >> $HOME/.bashrc
|
||||
echo "export ImageOS=$IMAGE_OS" >> $HOME/.bashrc
|
||||
echo "export ImageOS=$IMAGE_OS" >> $HOME/.bashrc
|
||||
|
||||
Reference in New Issue
Block a user