mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +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-AzCopy10Version),
|
||||||
(Get-BazelVersion),
|
(Get-BazelVersion),
|
||||||
(Get-BazeliskVersion),
|
(Get-BazeliskVersion),
|
||||||
|
(Get-BinUtilsVersion),
|
||||||
(Get-CodeQLBundleVersion),
|
(Get-CodeQLBundleVersion),
|
||||||
|
(Get-CoreUtilsVersion),
|
||||||
(Get-CMakeVersion),
|
(Get-CMakeVersion),
|
||||||
(Get-CurlVersion),
|
(Get-CurlVersion),
|
||||||
(Get-DockerMobyVersion),
|
(Get-DockerMobyVersion),
|
||||||
|
|||||||
@@ -34,6 +34,12 @@ function Get-BazeliskVersion {
|
|||||||
return "Bazelisk $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 {
|
function Get-CodeQLBundleVersion {
|
||||||
$CodeQLVersionsWildcard = Join-Path $Env:AGENT_TOOLSDIRECTORY -ChildPath "CodeQL" | Join-Path -ChildPath "*"
|
$CodeQLVersionsWildcard = Join-Path $Env:AGENT_TOOLSDIRECTORY -ChildPath "CodeQL" | Join-Path -ChildPath "*"
|
||||||
$CodeQLVersionPath = Get-ChildItem $CodeQLVersionsWildcard | Select-Object -First 1 -Expand FullName
|
$CodeQLVersionPath = Get-ChildItem $CodeQLVersionsWildcard | Select-Object -First 1 -Expand FullName
|
||||||
@@ -42,6 +48,12 @@ function Get-CodeQLBundleVersion {
|
|||||||
return "CodeQL Action Bundle $CodeQLVersion"
|
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 {
|
function Get-PodManVersion {
|
||||||
$podmanVersion = podman --version | Take-OutputPart -Part 2
|
$podmanVersion = podman --version | Take-OutputPart -Part 2
|
||||||
return "Podman $podmanVersion"
|
return "Podman $podmanVersion"
|
||||||
|
|||||||
@@ -24,6 +24,16 @@ Describe "Apt" {
|
|||||||
$toolName = "searchd"
|
$toolName = "searchd"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($toolName -eq "binutils")
|
||||||
|
{
|
||||||
|
$toolName = "strings"
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($toolName -eq "coreutils")
|
||||||
|
{
|
||||||
|
$toolName = "tr"
|
||||||
|
}
|
||||||
|
|
||||||
(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"
|
(Get-Command -Name $toolName).CommandType | Should -BeExactly "Application"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -181,9 +181,11 @@
|
|||||||
"zsync"
|
"zsync"
|
||||||
],
|
],
|
||||||
"cmd_packages": [
|
"cmd_packages": [
|
||||||
|
"binutils",
|
||||||
"bison",
|
"bison",
|
||||||
"brotli",
|
"brotli",
|
||||||
"bzip2",
|
"bzip2",
|
||||||
|
"coreutils",
|
||||||
"curl",
|
"curl",
|
||||||
"file",
|
"file",
|
||||||
"flex",
|
"flex",
|
||||||
|
|||||||
@@ -175,9 +175,11 @@
|
|||||||
"zsync"
|
"zsync"
|
||||||
],
|
],
|
||||||
"cmd_packages": [
|
"cmd_packages": [
|
||||||
|
"binutils",
|
||||||
"bison",
|
"bison",
|
||||||
"brotli",
|
"brotli",
|
||||||
"bzip2",
|
"bzip2",
|
||||||
|
"coreutils",
|
||||||
"curl",
|
"curl",
|
||||||
"file",
|
"file",
|
||||||
"flex",
|
"flex",
|
||||||
|
|||||||
@@ -151,9 +151,11 @@
|
|||||||
"zsync"
|
"zsync"
|
||||||
],
|
],
|
||||||
"cmd_packages": [
|
"cmd_packages": [
|
||||||
|
"binutils",
|
||||||
"bison",
|
"bison",
|
||||||
"brotli",
|
"brotli",
|
||||||
"bzip2",
|
"bzip2",
|
||||||
|
"coreutils",
|
||||||
"curl",
|
"curl",
|
||||||
"file",
|
"file",
|
||||||
"flex",
|
"flex",
|
||||||
|
|||||||
Reference in New Issue
Block a user