mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[macOS] Fix version output for vcpkg (#2141)
* change version output for vcpkg * minor fix * change commit id to short * minor change
This commit is contained in:
committed by
GitHub
parent
84744e30de
commit
db676f65e8
@@ -51,7 +51,8 @@ function Get-RustupVersion {
|
||||
|
||||
function Get-VcpkgVersion {
|
||||
$vcpkgVersion = Run-Command "vcpkg version" | Select-Object -First 1 | Take-Part -Part 5 | Take-Part -Part 0 -Delimiter "-"
|
||||
return "Vcpkg ${vcpkgVersion}"
|
||||
$commitId = git -C "/usr/local/share/vcpkg" rev-parse --short HEAD
|
||||
return "Vcpkg $vcpkgVersion (build from master <$commitId>)"
|
||||
}
|
||||
|
||||
function Get-GccVersion {
|
||||
|
||||
Reference in New Issue
Block a user