mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +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
|
$result.Output -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||||
$vcpkgVersion = $Matches.version
|
$vcpkgVersion = $Matches.version
|
||||||
$commitId = git -C "/usr/local/share/vcpkg" rev-parse --short HEAD
|
$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 {
|
function Get-AntVersion {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ function Get-RustupVersion {
|
|||||||
function Get-VcpkgVersion {
|
function Get-VcpkgVersion {
|
||||||
$vcpkgVersion = Run-Command "vcpkg version" | Select-Object -First 1 | Take-Part -Part 5 | Take-Part -Part 0 -Delimiter "-"
|
$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
|
$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 {
|
function Get-GccVersion {
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ function Get-VcpkgVersion {
|
|||||||
($(vcpkg version) | Out-String) -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
($(vcpkg version) | Out-String) -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||||
$vcpkgVersion = $Matches.Version
|
$vcpkgVersion = $Matches.Version
|
||||||
$commitId = git -C "C:\vcpkg" rev-parse --short HEAD
|
$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 {
|
function Get-NPMVersion {
|
||||||
|
|||||||
Reference in New Issue
Block a user