mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 22:36:46 +00:00
[macos] Utilise arch helper function (#8036)
This commit is contained in:
committed by
GitHub
parent
b762375cfc
commit
ff6a3d4b29
@@ -7,8 +7,7 @@ Import-Module "$env:HOME/image-generation/helpers/Xcode.Installer.psm1" -Disable
|
||||
# https://github.com/fastlane/fastlane/pull/18116
|
||||
$env:SPACESHIP_SKIP_2FA_UPGRADE = 1
|
||||
|
||||
$ARCH = arch
|
||||
if ($ARCH -ne "arm64") { $ARCH = "x64" }
|
||||
$ARCH = Get-Architecture
|
||||
[Array]$xcodeVersions = Get-ToolsetValue "xcode.$ARCH.versions"
|
||||
write-host $xcodeVersions
|
||||
$defaultXcode = Get-ToolsetValue "xcode.default"
|
||||
|
||||
@@ -2,8 +2,7 @@ Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
|
||||
Import-Module "$PSScriptRoot/../helpers/Xcode.Helpers.psm1"
|
||||
Import-Module "$PSScriptRoot/../helpers/Tests.Helpers.psm1" -DisableNameChecking
|
||||
|
||||
$ARCH = arch
|
||||
if ($ARCH -ne "arm64") { $ARCH = "x64" }
|
||||
$ARCH = Get-Architecture
|
||||
$xcodeVersions = Get-ToolsetValue "xcode.$ARCH.versions"
|
||||
$defaultXcode = Get-ToolsetValue "xcode.default"
|
||||
$latestXcodeVersion = $xcodeVersions | Select-Object -First 1
|
||||
|
||||
Reference in New Issue
Block a user