mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[macOS] Adding Bicep CLI (#3655)
* Add Bicep CLI * Correct regex for bicep version * Add Bicep CLI * use tap path for bicep brew install * use tap path for bicep brew install * use tap path for bicep brew install * Update bicep package name * Update bicep package name * Update bicep package name * Add install script in order to run homebrew tap * no need to reference utils.sh * Remove bicep from common packages * Add "CLI" to Bicep return statement Co-authored-by: Marcus Felling <MarcusFelling@microsoft.com>
This commit is contained in:
7
images/macos/provision/core/bicep.sh
Normal file
7
images/macos/provision/core/bicep.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash -e -o pipefail
|
||||
|
||||
echo Installing bicep cli...
|
||||
brew tap azure/bicep
|
||||
brew install bicep
|
||||
|
||||
invoke_tests "Common" "Bicep"
|
||||
@@ -502,6 +502,11 @@ function Get-SwigVersion {
|
||||
return "Swig $swigVersion"
|
||||
}
|
||||
|
||||
function Get-BicepVersion {
|
||||
$bicepVersion = Run-Command "bicep --version" | Take-Part -Part 3
|
||||
return "Bicep CLI $bicepVersion"
|
||||
}
|
||||
|
||||
function Build-PackageManagementEnvironmentTable {
|
||||
return @(
|
||||
@{
|
||||
|
||||
@@ -167,7 +167,8 @@ $toolsList = @(
|
||||
(Get-AWSSessionManagerCLIVersion),
|
||||
(Get-AliyunCLIVersion),
|
||||
(Get-XcodeCommandLineToolsVersion),
|
||||
(Get-SwigVersion)
|
||||
(Get-SwigVersion),
|
||||
(Get-BicepVersion)
|
||||
)
|
||||
|
||||
if( -not $os.IsHighSierra) {
|
||||
|
||||
@@ -183,7 +183,8 @@
|
||||
"./provision/core/xcode-sims.sh",
|
||||
"./provision/core/xcode-postbuild.sh",
|
||||
"./provision/core/pypy.sh",
|
||||
"./provision/core/pipx-packages.sh"
|
||||
"./provision/core/pipx-packages.sh",
|
||||
"./provision/core/bicep.sh"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -186,7 +186,8 @@
|
||||
"./provision/core/firefox.sh",
|
||||
"./provision/core/xcode-postbuild.sh",
|
||||
"./provision/core/pypy.sh",
|
||||
"./provision/core/pipx-packages.sh"
|
||||
"./provision/core/pipx-packages.sh",
|
||||
"./provision/core/bicep.sh"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -189,7 +189,8 @@
|
||||
"./provision/core/edge.sh",
|
||||
"./provision/core/firefox.sh",
|
||||
"./provision/core/pypy.sh",
|
||||
"./provision/core/pipx-packages.sh"
|
||||
"./provision/core/pipx-packages.sh",
|
||||
"./provision/core/bicep.sh"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -92,3 +92,9 @@ Describe "Swig" {
|
||||
"swig -version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Bicep" {
|
||||
It "Bicep" {
|
||||
"bicep --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user