mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
fix vcpkg output (#2319)
This commit is contained in:
committed by
GitHub
parent
7403f33180
commit
6245d40db7
@@ -138,7 +138,7 @@ function Get-VcpkgVersion {
|
||||
$result.Output -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$vcpkgVersion = $Matches.version
|
||||
$commitId = git -C "/usr/local/share/vcpkg" rev-parse --short HEAD
|
||||
return "Vcpkg $vcpkgVersion (build from master <$commitId>)"
|
||||
return "Vcpkg $vcpkgVersion (build from master \<$commitId>)"
|
||||
}
|
||||
|
||||
function Get-AntVersion {
|
||||
|
||||
@@ -57,7 +57,7 @@ function Get-RustupVersion {
|
||||
function Get-VcpkgVersion {
|
||||
$vcpkgVersion = Run-Command "vcpkg version" | Select-Object -First 1 | Take-Part -Part 5 | Take-Part -Part 0 -Delimiter "-"
|
||||
$commitId = git -C "/usr/local/share/vcpkg" rev-parse --short HEAD
|
||||
return "Vcpkg $vcpkgVersion (build from master <$commitId>)"
|
||||
return "Vcpkg $vcpkgVersion (build from master \<$commitId>)"
|
||||
}
|
||||
|
||||
function Get-GccVersion {
|
||||
|
||||
@@ -109,7 +109,7 @@ function Get-VcpkgVersion {
|
||||
($(vcpkg version) | Out-String) -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$vcpkgVersion = $Matches.Version
|
||||
$commitId = git -C "C:\vcpkg" rev-parse --short HEAD
|
||||
return "Vcpkg $vcpkgVersion (build from master <$commitId>)"
|
||||
return "Vcpkg $vcpkgVersion (build from master \<$commitId>)"
|
||||
}
|
||||
|
||||
function Get-NPMVersion {
|
||||
|
||||
Reference in New Issue
Block a user