mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +00:00
remove boost from ubuntu images (#2844)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user