mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-24 10:28:10 +08:00
Another mop up commit to add missing changes from the last mop-up.
This commit is contained in:
@@ -1,46 +1,46 @@
|
||||
################################################################################
|
||||
## File: Validate-Vcpkg.ps1
|
||||
## Desc: Validate vcpkg Cli
|
||||
################################################################################
|
||||
|
||||
if (Get-Command -Name 'Vcpkg')
|
||||
{
|
||||
Write-Host 'Vcpkg is succesfully installed:'
|
||||
vcpkg version | Write-Host
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host 'Vcpkg is not on PATH'
|
||||
exit 1
|
||||
}
|
||||
|
||||
if ($env:VCPKG_INSTALLATION_ROOT)
|
||||
{
|
||||
Write-Host "The VCPKG_INSTALLATION_ROOT environment variable is set"
|
||||
Write-Host $env:VCPKG_INSTALLATION_ROOT
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "The VCPKG_INSTALLATION_ROOT environment variable is not set"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
|
||||
# `vcpkg version` gives output like:
|
||||
# Vcpkg package management program version 2018.11.23-nohash
|
||||
#
|
||||
# See LICENSE.txt for license information.
|
||||
|
||||
$SoftwareName = 'Vcpkg'
|
||||
$(vcpkg version).Split([System.Environment]::NewLine)[0] -match "\d+.\d+.\d+.*"
|
||||
$VcpkgVersion = $Matches[0]
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $VcpkgVersion<br/>
|
||||
_Environment:_
|
||||
* PATH: contains location of the vcpkg directory
|
||||
* VCPKG_INSTALLATION_ROOT: root directory of the vcpkg installation
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
################################################################################
|
||||
## File: Validate-Vcpkg.ps1
|
||||
## Desc: Validate vcpkg Cli
|
||||
################################################################################
|
||||
|
||||
if (Get-Command -Name 'Vcpkg')
|
||||
{
|
||||
Write-Host 'Vcpkg is succesfully installed:'
|
||||
vcpkg version | Write-Host
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host 'Vcpkg is not on PATH'
|
||||
exit 1
|
||||
}
|
||||
|
||||
if ($env:VCPKG_INSTALLATION_ROOT)
|
||||
{
|
||||
Write-Host "The VCPKG_INSTALLATION_ROOT environment variable is set"
|
||||
Write-Host $env:VCPKG_INSTALLATION_ROOT
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "The VCPKG_INSTALLATION_ROOT environment variable is not set"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
|
||||
# `vcpkg version` gives output like:
|
||||
# Vcpkg package management program version 2018.11.23-nohash
|
||||
#
|
||||
# See LICENSE.txt for license information.
|
||||
|
||||
$SoftwareName = 'Vcpkg'
|
||||
$(vcpkg version).Split([System.Environment]::NewLine)[0] -match "\d+.\d+.\d+.*"
|
||||
$VcpkgVersion = $Matches[0]
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $VcpkgVersion<br/>
|
||||
_Environment:_
|
||||
* PATH: contains location of the vcpkg directory
|
||||
* VCPKG_INSTALLATION_ROOT: root directory of the vcpkg installation
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Reference in New Issue
Block a user