mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 14:17:22 +00:00
[Ubuntu] Reworked clang installation to use default Ubuntu repo (#3834)
This commit is contained in:
@@ -44,13 +44,6 @@ function Get-ClangVersions {
|
||||
return "Clang " + $clangVersions
|
||||
}
|
||||
|
||||
function Get-LLVMInfo {
|
||||
$clangVersions = Get-ClangToolVersions -ToolName "clang"
|
||||
$clangFormatVersions = Get-ClangToolVersions -ToolName "clang-format"
|
||||
$aptSourceRepo = Get-AptSourceRepository -PackageName "llvm"
|
||||
return "LLVM components: Clang $clangFormatVersions, Clang-format $clangFormatVersions (apt source: $aptSourceRepo)"
|
||||
}
|
||||
|
||||
function Get-ClangFormatVersions {
|
||||
$clangFormatVersions = Get-ClangToolVersions -ToolName "clang-format"
|
||||
return "Clang-format " + $clangFormatVersions
|
||||
|
||||
@@ -50,16 +50,11 @@ $runtimesList = @(
|
||||
(Get-RubyVersion),
|
||||
(Get-SwiftVersion),
|
||||
(Get-JuliaVersion),
|
||||
(Get-KotlinVersion)
|
||||
(Get-KotlinVersion),
|
||||
(Get-ClangVersions),
|
||||
(Get-ClangFormatVersions)
|
||||
)
|
||||
|
||||
if (Test-IsUbuntu20) {
|
||||
$runtimesList += (Get-LLVMInfo)
|
||||
} else {
|
||||
$runtimesList += (Get-ClangVersions)
|
||||
$runtimesList += (Get-ClangFormatVersions)
|
||||
}
|
||||
|
||||
$markdown += New-MDList -Style Unordered -Lines ($runtimesList | Sort-Object)
|
||||
|
||||
$markdown += New-MDHeader "Package Management" -Level 3
|
||||
|
||||
Reference in New Issue
Block a user