mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
[Windows] Adding Bicep CLI (#3600)
* Add Bicep CLI * Correct regex for bicep version Co-authored-by: Marcus Felling <MarcusFelling@microsoft.com>
This commit is contained in:
8
images/win/scripts/Installers/Install-Bicep.ps1
Normal file
8
images/win/scripts/Installers/Install-Bicep.ps1
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
################################################################################
|
||||||
|
## File: Install-Bicep.ps1
|
||||||
|
## Desc: Install Bicep
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
Choco-Install -PackageName Bicep
|
||||||
|
|
||||||
|
Invoke-PesterTests -TestFile "Tools" -TestName "Bicep"
|
||||||
@@ -77,6 +77,7 @@ $markdown += New-MDList -Style Unordered -Lines (@(
|
|||||||
(Get-AzCopyVersion),
|
(Get-AzCopyVersion),
|
||||||
(Get-BazelVersion),
|
(Get-BazelVersion),
|
||||||
(Get-BazeliskVersion),
|
(Get-BazeliskVersion),
|
||||||
|
(Get-BicepVersion),
|
||||||
(Get-CabalVersion),
|
(Get-CabalVersion),
|
||||||
(Get-CMakeVersion),
|
(Get-CMakeVersion),
|
||||||
(Get-CodeQLBundleVersion),
|
(Get-CodeQLBundleVersion),
|
||||||
|
|||||||
@@ -18,6 +18,12 @@ function Get-BazeliskVersion {
|
|||||||
return "Bazelisk $bazeliskVersion"
|
return "Bazelisk $bazeliskVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-BicepVersion {
|
||||||
|
(bicep --version | Out-String) -match "bicep cli version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||||
|
$bicepVersion = $Matches.Version
|
||||||
|
return "Bicep $bicepVersion"
|
||||||
|
}
|
||||||
|
|
||||||
function Get-RVersion {
|
function Get-RVersion {
|
||||||
($(cmd /c "Rscript --version 2>&1") | Out-String) -match "R scripting front-end version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
($(cmd /c "Rscript --version 2>&1") | Out-String) -match "R scripting front-end version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||||
$rVersion = $Matches.Version
|
$rVersion = $Matches.Version
|
||||||
|
|||||||
@@ -35,6 +35,12 @@ Describe "Bazel" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Describe "Bicep" {
|
||||||
|
It "Bicep" {
|
||||||
|
"bicep --version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Describe "CMake" {
|
Describe "CMake" {
|
||||||
It "cmake" {
|
It "cmake" {
|
||||||
"cmake --version" | Should -ReturnZeroExitCode
|
"cmake --version" | Should -ReturnZeroExitCode
|
||||||
|
|||||||
@@ -254,7 +254,8 @@
|
|||||||
"{{ 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-Swig.ps1"
|
"{{ template_dir }}/scripts/Installers/Install-Swig.ps1",
|
||||||
|
"{{ template_dir }}/scripts/Installers/Install-Bicep.ps1"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -258,7 +258,8 @@
|
|||||||
"{{ 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-Swig.ps1"
|
"{{ template_dir }}/scripts/Installers/Install-Swig.ps1",
|
||||||
|
"{{ template_dir }}/scripts/Installers/Install-Bicep.ps1"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user