mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[macos] Add Xcode command line tools version (#2205)
This commit is contained in:
@@ -194,6 +194,7 @@ $ghcUpVersion = Run-Command "ghcup --version" | Take-Part -Part 5
|
||||
$ghcVersion = Run-Command "ghc --version" | Take-Part -Part 7
|
||||
$cabalVersion = Run-Command "cabal --version" | Take-Part -Part 3
|
||||
$stackVersion = Run-Command "stack --version" | Take-Part -Part 1 | ForEach-Object {$_.replace(",","")}
|
||||
$xcodeVersion = Run-Command "pkgutil --pkg-info com.apple.pkg.CLTools_Executables" | Select -Index 1 | Take-Part -Part 1
|
||||
|
||||
$markdown += New-MDHeader "Tools" -Level 3
|
||||
$markdown += New-MDList -Style Unordered -NoNewLine -Lines @(
|
||||
@@ -204,7 +205,8 @@ $markdown += New-MDList -Style Unordered -NoNewLine -Lines @(
|
||||
"AWS CLI ${awsVersion}",
|
||||
"AWS SAM CLI ${awsSamVersion}",
|
||||
"AWS Session Manager CLI ${awsSessionManagerVersion}",
|
||||
"Aliyun CLI ${aliyunVersion}"
|
||||
"Aliyun CLI ${aliyunVersion}",
|
||||
"Xcode Command Line Tools ${xcodeVersion}"
|
||||
)
|
||||
|
||||
if( -not $os.IsHighSierra) {
|
||||
@@ -323,4 +325,4 @@ if (-not (Test-Path $OutputDirectory)) { New-Item -Path $OutputDirectory -ItemTy
|
||||
#
|
||||
Write-Host $markdownExtended
|
||||
$systemInfo | Out-File -FilePath "${OutputDirectory}/systeminfo.txt" -Encoding UTF8NoBOM
|
||||
$markdown | Out-File -FilePath "${OutputDirectory}/systeminfo.md" -Encoding UTF8NoBOM
|
||||
$markdown | Out-File -FilePath "${OutputDirectory}/systeminfo.md" -Encoding UTF8NoBOM
|
||||
|
||||
@@ -244,4 +244,4 @@ function Build-XcodeSupportToolsSection {
|
||||
$output += New-MDHeader "Xcode Support Tools" -Level 4
|
||||
$output += New-MDList -Style Unordered -Lines $toolList
|
||||
return $output
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user