mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
macos-13: update XCode-15 to Beta 6 (#8076)
This commit is contained in:
@@ -86,14 +86,38 @@ function Invoke-RestMethodWithRetry {
|
|||||||
function Invoke-ValidateCommand {
|
function Invoke-ValidateCommand {
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory)]
|
[Parameter(Mandatory)]
|
||||||
[string]$Command
|
[string]$Command,
|
||||||
|
[Uint] $Timeout = 0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if ($Timeout -eq 0)
|
||||||
|
{
|
||||||
$output = Invoke-Expression -Command $Command
|
$output = Invoke-Expression -Command $Command
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
throw "Command '$Command' has finished with exit code $LASTEXITCODE"
|
throw "Command '$Command' has finished with exit code $LASTEXITCODE"
|
||||||
}
|
}
|
||||||
return $output
|
return $output
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$job = $command | Start-Job -ScriptBlock {
|
||||||
|
$output = Invoke-Expression -Command $input
|
||||||
|
if ($LASTEXITCODE -ne 0) {
|
||||||
|
throw 'Command failed'
|
||||||
|
}
|
||||||
|
return $output
|
||||||
|
}
|
||||||
|
$waitObject = $job | Wait-Job -Timeout $Timeout
|
||||||
|
if(-not $waitObject)
|
||||||
|
{
|
||||||
|
throw "Command '$Command' has timed out"
|
||||||
|
}
|
||||||
|
if($waitObject.State -eq 'Failed')
|
||||||
|
{
|
||||||
|
throw "Command '$Command' has failed"
|
||||||
|
}
|
||||||
|
Receive-Job -Job $job
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function Start-DownloadWithRetry {
|
function Start-DownloadWithRetry {
|
||||||
|
|||||||
@@ -129,10 +129,7 @@ function Approve-XcodeLicense {
|
|||||||
$XcodeRootPath = Get-XcodeRootPath -Version $Version
|
$XcodeRootPath = Get-XcodeRootPath -Version $Version
|
||||||
Write-Host "Approving Xcode license for '$XcodeRootPath'..."
|
Write-Host "Approving Xcode license for '$XcodeRootPath'..."
|
||||||
$xcodeBuildPath = Get-XcodeToolPath -XcodeRootPath $XcodeRootPath -ToolName "xcodebuild"
|
$xcodeBuildPath = Get-XcodeToolPath -XcodeRootPath $XcodeRootPath -ToolName "xcodebuild"
|
||||||
try {
|
Invoke-ValidateCommand -Command "sudo $xcodeBuildPath -license accept" -Timeout 15
|
||||||
Invoke-Expression -Command "sudo $xcodeBuildPath -license accept" 2>&1 | Out-Null
|
|
||||||
} catch { }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Install-XcodeAdditionalPackages {
|
function Install-XcodeAdditionalPackages {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"default": "14.2",
|
"default": "14.2",
|
||||||
"x64": {
|
"x64": {
|
||||||
"versions": [
|
"versions": [
|
||||||
{ "link": "15.0", "version": "15.0.0-Beta.5+15A5209g" },
|
{ "link": "15.0", "version": "15.0.0-Beta.6+15A5219j" },
|
||||||
{ "link": "14.3.1", "version": "14.3.1+14E300c" },
|
{ "link": "14.3.1", "version": "14.3.1+14E300c" },
|
||||||
{ "link": "14.3", "version": "14.3.0+14E222b" },
|
{ "link": "14.3", "version": "14.3.0+14E222b" },
|
||||||
{ "link": "14.2", "version": "14.2.0+14C18" },
|
{ "link": "14.2", "version": "14.2.0+14C18" },
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
},
|
},
|
||||||
"arm64":{
|
"arm64":{
|
||||||
"versions": [
|
"versions": [
|
||||||
{ "link": "15.0", "version": "15.0.0-Beta.5+15A5209g" },
|
{ "link": "15.0", "version": "15.0.0-Beta.6+15A5219j" },
|
||||||
{ "link": "14.3.1", "version": "14.3.1+14E300c" },
|
{ "link": "14.3.1", "version": "14.3.1+14E300c" },
|
||||||
{ "link": "14.3", "version": "14.3.0+14E222b" },
|
{ "link": "14.3", "version": "14.3.0+14E222b" },
|
||||||
{ "link": "14.2", "version": "14.2.0+14C18" },
|
{ "link": "14.2", "version": "14.2.0+14C18" },
|
||||||
|
|||||||
Reference in New Issue
Block a user