remove boost from ubuntu images (#2844)

This commit is contained in:
Mikhail Timofeev
2021-03-05 10:22:42 +03:00
committed by GitHub
parent 6ec7e94c45
commit adcbf9592c
6 changed files with 1 additions and 67 deletions

View File

@@ -41,44 +41,9 @@ function Build-GoEnvironmentTable {
}
}
function Get-ToolcacheBoostVersions {
$Name = "Boost"
$toolcachePath = Join-Path $env:AGENT_TOOLSDIRECTORY "boost"
if (-not (Test-Path $toolcachePath)) {
return @()
}
$BoostVersions = Get-ChildItem $toolcachePath -Name | Sort-Object { [Version]$_ }
$ToolInstances = $BoostVersions | ForEach-Object {
$VersionEnvVar = $_.replace(".", "_")
return @{
Version = $_
Architecture = "x64"
"Environment Variable" = "BOOST_ROOT_${VersionEnvVar}"
}
}
$Content = $ToolInstances | New-MDTable -Columns ([ordered]@{
Version = "left";
Architecture = "left";
"Environment Variable" = "left"
})
$markdown = ""
if ($Content.Count -gt 0) {
$markdown += New-MDHeader $Name -Level 4
$markdown += New-MDParagraph -Lines $Content
}
return $markdown
}
function Build-CachedToolsSection {
$output = ""
$output += Get-ToolcacheBoostVersions
$output += New-MDHeader "Go" -Level 4
$output += New-MDList -Lines (Get-ToolcacheGoVersions) -Style Unordered