mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
Add LLVM via choco (#4056)
This commit is contained in:
@@ -94,6 +94,11 @@ function Get-JuliaVersion {
|
|||||||
return "Julia $juliaVersion"
|
return "Julia $juliaVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-LLVMVersion {
|
||||||
|
$llvmVersion = [regex]::matches($(clang --version), "\d+\.\d+\.\d+").Value
|
||||||
|
return "LLVM $llvmVersion"
|
||||||
|
}
|
||||||
|
|
||||||
function Get-PerlVersion {
|
function Get-PerlVersion {
|
||||||
($(perl --version) | Out-String) -match "\(v(?<version>\d+\.\d+\.\d+)\)" | Out-Null
|
($(perl --version) | Out-String) -match "\(v(?<version>\d+\.\d+\.\d+)\)" | Out-Null
|
||||||
$perlVersion = $Matches.Version
|
$perlVersion = $Matches.Version
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ $languageTools = @(
|
|||||||
(Get-BashVersion),
|
(Get-BashVersion),
|
||||||
(Get-GoVersion),
|
(Get-GoVersion),
|
||||||
(Get-JuliaVersion),
|
(Get-JuliaVersion),
|
||||||
|
(Get-LLVMVersion),
|
||||||
(Get-NodeVersion),
|
(Get-NodeVersion),
|
||||||
(Get-PHPVersion),
|
(Get-PHPVersion),
|
||||||
(Get-PythonVersion),
|
(Get-PythonVersion),
|
||||||
|
|||||||
@@ -81,6 +81,15 @@ Describe "KubernetesTools" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Describe "LLVM" {
|
||||||
|
It "<ToolName>" -TestCases @(
|
||||||
|
@{ ToolName = "clang" }
|
||||||
|
@{ ToolName = "clang++" }
|
||||||
|
) {
|
||||||
|
"$ToolName --version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Describe "Mingw64" {
|
Describe "Mingw64" {
|
||||||
It "<ToolName>" -TestCases @(
|
It "<ToolName>" -TestCases @(
|
||||||
@{ ToolName = "gcc" }
|
@{ ToolName = "gcc" }
|
||||||
|
|||||||
@@ -390,6 +390,7 @@
|
|||||||
{ "name": "gitversion.portable" },
|
{ "name": "gitversion.portable" },
|
||||||
{ "name": "innosetup" },
|
{ "name": "innosetup" },
|
||||||
{ "name": "jq" },
|
{ "name": "jq" },
|
||||||
|
{ "name": "llvm" },
|
||||||
{ "name": "NuGet.CommandLine" },
|
{ "name": "NuGet.CommandLine" },
|
||||||
{
|
{
|
||||||
"name": "openssl.light",
|
"name": "openssl.light",
|
||||||
|
|||||||
@@ -420,6 +420,7 @@
|
|||||||
{ "name": "gitversion.portable" },
|
{ "name": "gitversion.portable" },
|
||||||
{ "name": "innosetup" },
|
{ "name": "innosetup" },
|
||||||
{ "name": "jq" },
|
{ "name": "jq" },
|
||||||
|
{ "name": "llvm" },
|
||||||
{ "name": "NuGet.CommandLine" },
|
{ "name": "NuGet.CommandLine" },
|
||||||
{
|
{
|
||||||
"name": "openssl.light",
|
"name": "openssl.light",
|
||||||
|
|||||||
@@ -245,6 +245,7 @@
|
|||||||
{ "name": "azcopy10" },
|
{ "name": "azcopy10" },
|
||||||
{ "name": "Bicep" },
|
{ "name": "Bicep" },
|
||||||
{ "name": "jq" },
|
{ "name": "jq" },
|
||||||
|
{ "name": "llvm" },
|
||||||
{ "name": "NuGet.CommandLine" },
|
{ "name": "NuGet.CommandLine" },
|
||||||
{
|
{
|
||||||
"name": "openssl.light",
|
"name": "openssl.light",
|
||||||
|
|||||||
Reference in New Issue
Block a user