[macOS] Install MetalToolchain for Xcode Releases only (#13273)

This commit is contained in:
Erik Bershel
2025-11-07 18:06:29 +01:00
committed by GitHub
parent a15f42d197
commit 9b8c970943

View File

@@ -35,7 +35,7 @@ $xcodeVersions | ForEach-Object {
Write-Host "Configuring Xcode $($_.link) ..."
Invoke-XcodeRunFirstLaunch -Version $_.link
Install-XcodeAdditionalSimulatorRuntimes -Version $_.link -Arch $arch -Runtimes $_.install_runtimes
if ($_.link -match '\d{2}(?=[._])' -and [int]$matches[0] -ge 26) {
if (($_.link -match '^(\d+)\.(\d+)$') -and ([int]$matches[1] -ge 26)) {
Install-XcodeAdditionalComponents -Version $_.link
}
}