mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
use "license accept timeout" only on MacOS-13 (#8084)
This commit is contained in:
@@ -126,10 +126,17 @@ function Approve-XcodeLicense {
|
||||
[string]$Version
|
||||
)
|
||||
|
||||
$os = Get-OSVersion
|
||||
|
||||
$XcodeRootPath = Get-XcodeRootPath -Version $Version
|
||||
Write-Host "Approving Xcode license for '$XcodeRootPath'..."
|
||||
$xcodeBuildPath = Get-XcodeToolPath -XcodeRootPath $XcodeRootPath -ToolName "xcodebuild"
|
||||
Invoke-ValidateCommand -Command "sudo $xcodeBuildPath -license accept" -Timeout 15
|
||||
|
||||
if ($os.IsVentura -or $os.IsVenturaArm64) {
|
||||
Invoke-ValidateCommand -Command "sudo $xcodeBuildPath -license accept" -Timeout 15
|
||||
} else {
|
||||
Invoke-ValidateCommand -Command "sudo $xcodeBuildPath -license accept"
|
||||
}
|
||||
}
|
||||
|
||||
function Install-XcodeAdditionalPackages {
|
||||
|
||||
Reference in New Issue
Block a user