mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00: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" }
|
||||
|
||||
@@ -390,6 +390,7 @@
|
||||
{ "name": "gitversion.portable" },
|
||||
{ "name": "innosetup" },
|
||||
{ "name": "jq" },
|
||||
{ "name": "llvm" },
|
||||
{ "name": "NuGet.CommandLine" },
|
||||
{
|
||||
"name": "openssl.light",
|
||||
|
||||
@@ -420,6 +420,7 @@
|
||||
{ "name": "gitversion.portable" },
|
||||
{ "name": "innosetup" },
|
||||
{ "name": "jq" },
|
||||
{ "name": "llvm" },
|
||||
{ "name": "NuGet.CommandLine" },
|
||||
{
|
||||
"name": "openssl.light",
|
||||
|
||||
@@ -245,6 +245,7 @@
|
||||
{ "name": "azcopy10" },
|
||||
{ "name": "Bicep" },
|
||||
{ "name": "jq" },
|
||||
{ "name": "llvm" },
|
||||
{ "name": "NuGet.CommandLine" },
|
||||
{
|
||||
"name": "openssl.light",
|
||||
|
||||
Reference in New Issue
Block a user