[macos] add architecture references (#7593)

This commit is contained in:
Shamil Mubarakshin
2023-05-16 16:39:03 +02:00
committed by GitHub
parent cc2b556e65
commit 111d6ae5cf
4 changed files with 43 additions and 29 deletions

View File

@@ -2,7 +2,9 @@ Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
Import-Module "$PSScriptRoot/../helpers/Xcode.Helpers.psm1"
Import-Module "$PSScriptRoot/../helpers/Tests.Helpers.psm1" -DisableNameChecking
$xcodeVersions = Get-ToolsetValue "xcode.versions"
$ARCH = arch
if ($ARCH -ne "arm64") { $ARCH = "x64" }
$xcodeVersions = Get-ToolsetValue "xcode.$ARCH.versions"
$defaultXcode = Get-ToolsetValue "xcode.default"
$latestXcodeVersion = $xcodeVersions | Select-Object -First 1
$os = Get-OSVersion