mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Another mop up commit to add missing changes from the last mop-up.
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
################################################################################
|
||||
## File: Validate-Cmake.ps1
|
||||
## Desc: Validate Cmake
|
||||
################################################################################
|
||||
|
||||
if(Get-Command -Name 'cmake')
|
||||
{
|
||||
Write-Host "Cmake $(cmake -version) on path"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host 'cmake not on path'
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
if( $( $(cmake -version) | Out-String) -match 'cmake version (?<version>.*).*' )
|
||||
{
|
||||
$cmakeVersion = $Matches.version.Trim()
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "Cmake"
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $cmakeVersion<br/>
|
||||
_Environment:_
|
||||
* PATH: contains location of cmake.exe
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
################################################################################
|
||||
## File: Validate-Cmake.ps1
|
||||
## Desc: Validate Cmake
|
||||
################################################################################
|
||||
|
||||
if(Get-Command -Name 'cmake')
|
||||
{
|
||||
Write-Host "Cmake $(cmake -version) on path"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host 'cmake not on path'
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
if( $( $(cmake -version) | Out-String) -match 'cmake version (?<version>.*).*' )
|
||||
{
|
||||
$cmakeVersion = $Matches.version.Trim()
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "Cmake"
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $cmakeVersion<br/>
|
||||
_Environment:_
|
||||
* PATH: contains location of cmake.exe
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Reference in New Issue
Block a user