mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-30 13:27:15 +08:00
Merge pull request #466 from nikita-bykov/bazel-support
Add Bazel support to Linux and Windows
This commit is contained in:
6
images/win/scripts/Installers/Install-Bazel.ps1
Normal file
6
images/win/scripts/Installers/Install-Bazel.ps1
Normal file
@@ -0,0 +1,6 @@
|
||||
################################################################################
|
||||
## File: Install-Bazel.ps1
|
||||
## Desc: Install Bazel
|
||||
################################################################################
|
||||
|
||||
choco install bazel -y
|
||||
23
images/win/scripts/Installers/Validate-Bazel.ps1
Normal file
23
images/win/scripts/Installers/Validate-Bazel.ps1
Normal file
@@ -0,0 +1,23 @@
|
||||
################################################################################
|
||||
## File: Validate-Bazel.ps1
|
||||
## Desc: Validate Bazel
|
||||
################################################################################
|
||||
|
||||
if (Get-Command -Name 'bazel')
|
||||
{
|
||||
Write-Host "bazel on path"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host 'bazel is not on path'
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "bazel"
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $(bazel --version)<br/>
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
Reference in New Issue
Block a user