mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
Add dash version into documentation (#5796)
This commit is contained in:
committed by
GitHub
parent
03d3125c20
commit
220c7ad69b
@@ -3,6 +3,11 @@ function Get-BashVersion {
|
|||||||
return "Bash $version"
|
return "Bash $version"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-DashVersion {
|
||||||
|
$version = dpkg-query -W -f '${Version}' dash
|
||||||
|
return "Dash $version"
|
||||||
|
}
|
||||||
|
|
||||||
function Get-CPPVersions {
|
function Get-CPPVersions {
|
||||||
$result = Get-CommandResult "apt list --installed" -Multiline
|
$result = Get-CommandResult "apt list --installed" -Multiline
|
||||||
$cppVersions = $result.Output | Where-Object { $_ -match "g\+\+-\d+"} | ForEach-Object {
|
$cppVersions = $result.Output | Where-Object { $_ -match "g\+\+-\d+"} | ForEach-Object {
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ $markdown += New-MDHeader "Language and Runtime" -Level 3
|
|||||||
|
|
||||||
$runtimesList = @(
|
$runtimesList = @(
|
||||||
(Get-BashVersion),
|
(Get-BashVersion),
|
||||||
|
(Get-DashVersion),
|
||||||
(Get-CPPVersions),
|
(Get-CPPVersions),
|
||||||
(Get-FortranVersions),
|
(Get-FortranVersions),
|
||||||
(Get-NodeVersion),
|
(Get-NodeVersion),
|
||||||
|
|||||||
Reference in New Issue
Block a user