mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
[Ubuntu] Provide version info for binutils and coreutils packages (#2627)
* include binutils and coreutils to doc section * fix bin to core * replace split to Take-OutputPart
This commit is contained in:
committed by
GitHub
parent
b349624d7b
commit
be109fcbc2
@@ -91,7 +91,9 @@ $toolsList = @(
|
||||
(Get-AzCopy10Version),
|
||||
(Get-BazelVersion),
|
||||
(Get-BazeliskVersion),
|
||||
(Get-BinUtilsVersion),
|
||||
(Get-CodeQLBundleVersion),
|
||||
(Get-CoreUtilsVersion),
|
||||
(Get-CMakeVersion),
|
||||
(Get-CurlVersion),
|
||||
(Get-DockerMobyVersion),
|
||||
|
||||
@@ -34,6 +34,12 @@ function Get-BazeliskVersion {
|
||||
return "Bazelisk $bazeliskVersion"
|
||||
}
|
||||
|
||||
function Get-BinUtilsVersion {
|
||||
$result = Get-CommandResult "dpkg-query --show binutils"
|
||||
$binUtilsVersion = $result.Output| Take-OutputPart -Part 1 -Delimiter "`t" | Take-OutputPart -Part 0 -Delimiter "-"
|
||||
return "binutils $binUtilsVersion"
|
||||
}
|
||||
|
||||
function Get-CodeQLBundleVersion {
|
||||
$CodeQLVersionsWildcard = Join-Path $Env:AGENT_TOOLSDIRECTORY -ChildPath "CodeQL" | Join-Path -ChildPath "*"
|
||||
$CodeQLVersionPath = Get-ChildItem $CodeQLVersionsWildcard | Select-Object -First 1 -Expand FullName
|
||||
@@ -42,6 +48,12 @@ function Get-CodeQLBundleVersion {
|
||||
return "CodeQL Action Bundle $CodeQLVersion"
|
||||
}
|
||||
|
||||
function Get-CoreUtilsVersion {
|
||||
$result = Get-CommandResult "dpkg-query --show coreutils"
|
||||
$coreUtilsVersion = $result.Output | Take-OutputPart -Part 1 -Delimiter "`t" | Take-OutputPart -Part 0 -Delimiter "-"
|
||||
return "coreutils $coreUtilsVersion"
|
||||
}
|
||||
|
||||
function Get-PodManVersion {
|
||||
$podmanVersion = podman --version | Take-OutputPart -Part 2
|
||||
return "Podman $podmanVersion"
|
||||
|
||||
@@ -24,6 +24,16 @@ Describe "Apt" {
|
||||
$toolName = "searchd"
|
||||
}
|
||||
|
||||
if ($toolName -eq "binutils")
|
||||
{
|
||||
$toolName = "strings"
|
||||
}
|
||||
|
||||
if ($toolName -eq "coreutils")
|
||||
{
|
||||
$toolName = "tr"
|
||||
}
|
||||
|
||||
(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"
|
||||
}
|
||||
}
|
||||
@@ -181,9 +181,11 @@
|
||||
"zsync"
|
||||
],
|
||||
"cmd_packages": [
|
||||
"binutils",
|
||||
"bison",
|
||||
"brotli",
|
||||
"bzip2",
|
||||
"coreutils",
|
||||
"curl",
|
||||
"file",
|
||||
"flex",
|
||||
|
||||
@@ -175,9 +175,11 @@
|
||||
"zsync"
|
||||
],
|
||||
"cmd_packages": [
|
||||
"binutils",
|
||||
"bison",
|
||||
"brotli",
|
||||
"bzip2",
|
||||
"coreutils",
|
||||
"curl",
|
||||
"file",
|
||||
"flex",
|
||||
|
||||
@@ -151,9 +151,11 @@
|
||||
"zsync"
|
||||
],
|
||||
"cmd_packages": [
|
||||
"binutils",
|
||||
"bison",
|
||||
"brotli",
|
||||
"bzip2",
|
||||
"coreutils",
|
||||
"curl",
|
||||
"file",
|
||||
"flex",
|
||||
|
||||
Reference in New Issue
Block a user