mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-06 18:17:26 +08:00
Add LLVM via choco (#4056)
This commit is contained in:
@@ -94,6 +94,11 @@ function Get-JuliaVersion {
|
||||
return "Julia $juliaVersion"
|
||||
}
|
||||
|
||||
function Get-LLVMVersion {
|
||||
$llvmVersion = [regex]::matches($(clang --version), "\d+\.\d+\.\d+").Value
|
||||
return "LLVM $llvmVersion"
|
||||
}
|
||||
|
||||
function Get-PerlVersion {
|
||||
($(perl --version) | Out-String) -match "\(v(?<version>\d+\.\d+\.\d+)\)" | Out-Null
|
||||
$perlVersion = $Matches.Version
|
||||
|
||||
@@ -35,6 +35,7 @@ $languageTools = @(
|
||||
(Get-BashVersion),
|
||||
(Get-GoVersion),
|
||||
(Get-JuliaVersion),
|
||||
(Get-LLVMVersion),
|
||||
(Get-NodeVersion),
|
||||
(Get-PHPVersion),
|
||||
(Get-PythonVersion),
|
||||
|
||||
@@ -81,6 +81,15 @@ Describe "KubernetesTools" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "LLVM" {
|
||||
It "<ToolName>" -TestCases @(
|
||||
@{ ToolName = "clang" }
|
||||
@{ ToolName = "clang++" }
|
||||
) {
|
||||
"$ToolName --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Mingw64" {
|
||||
It "<ToolName>" -TestCases @(
|
||||
@{ ToolName = "gcc" }
|
||||
|
||||
Reference in New Issue
Block a user