mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
[Windows] move llvm to toolset (#4487)
This commit is contained in:
10
images/win/scripts/Installers/Install-LLVM.ps1
Normal file
10
images/win/scripts/Installers/Install-LLVM.ps1
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
################################################################################
|
||||||
|
## File: Install-LLVM.ps1
|
||||||
|
## Desc: Install the latest stable version of llvm and clang compilers
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
$llvmVersion = (Get-ToolsetContent).llvm.version
|
||||||
|
$latestChocoVersion = Get-LatestChocoPackageVersion -TargetVersion $llvmVersion -PackageName "llvm"
|
||||||
|
Choco-Install -PackageName llvm -ArgumentList "--version $latestChocoVersion"
|
||||||
|
|
||||||
|
Invoke-PesterTests -TestFile "LLVM"
|
||||||
7
images/win/scripts/Tests/LLVM.Tests.ps1
Normal file
7
images/win/scripts/Tests/LLVM.Tests.ps1
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
Describe "Clang/LLVM" {
|
||||||
|
It "Clang/LLVM installed and version is correct" {
|
||||||
|
$toolsetVersion = (Get-ToolsetContent).llvm.version
|
||||||
|
$clangVersion = clang --version
|
||||||
|
$clangVersion[0] | Should -BeLike "*${toolsetVersion}*"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -81,15 +81,6 @@ 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" }
|
||||||
|
|||||||
@@ -397,7 +397,6 @@
|
|||||||
{ "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",
|
||||||
@@ -427,5 +426,8 @@
|
|||||||
},
|
},
|
||||||
"mongodb": {
|
"mongodb": {
|
||||||
"version": "5.0"
|
"version": "5.0"
|
||||||
|
},
|
||||||
|
"llvm": {
|
||||||
|
"version": "13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -429,7 +429,6 @@
|
|||||||
{ "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",
|
||||||
@@ -459,5 +458,8 @@
|
|||||||
},
|
},
|
||||||
"mongodb": {
|
"mongodb": {
|
||||||
"version": "5.0"
|
"version": "5.0"
|
||||||
|
},
|
||||||
|
"llvm": {
|
||||||
|
"version": "13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -206,7 +206,8 @@
|
|||||||
"{{ template_dir }}/scripts/Installers/Install-Selenium.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Selenium.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-IEWebDriver.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-IEWebDriver.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Apache.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Apache.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Nginx.ps1"
|
"{{ template_dir }}/scripts/Installers/Install-Nginx.ps1",
|
||||||
|
"{{ template_dir }}/scripts/Installers/Install-LLVM.ps1"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -267,7 +267,8 @@
|
|||||||
"{{ template_dir }}/scripts/Installers/Configure-DynamicPort.ps1",
|
"{{ template_dir }}/scripts/Installers/Configure-DynamicPort.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Configure-GDIProcessHandleQuota.ps1",
|
"{{ template_dir }}/scripts/Installers/Configure-GDIProcessHandleQuota.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Configure-Shell.ps1",
|
"{{ template_dir }}/scripts/Installers/Configure-Shell.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Enable-DeveloperMode.ps1"
|
"{{ template_dir }}/scripts/Installers/Enable-DeveloperMode.ps1",
|
||||||
|
"{{ template_dir }}/scripts/Installers/Install-LLVM.ps1"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user