mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[macOS] Add GNU Tar (#2163)
* added gnu-tar * rework gnu-tar installation * fix SoftwareReport for gnu-tar * add bsdtar to SoftwareReport * updated SoftwareReport Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com>
This commit is contained in:
@@ -22,6 +22,7 @@ binst_common_utils=(
|
|||||||
p7zip
|
p7zip
|
||||||
ant
|
ant
|
||||||
aria2
|
aria2
|
||||||
|
gnu-tar
|
||||||
)
|
)
|
||||||
|
|
||||||
if is_Less_BigSur; then
|
if is_Less_BigSur; then
|
||||||
|
|||||||
@@ -140,6 +140,8 @@ $helmVersion = Run-Command "helm version --short"
|
|||||||
$mongo = Run-Command "mongo --version" | Select-String "MongoDB shell version" | Take-Part -Part 3
|
$mongo = Run-Command "mongo --version" | Select-String "MongoDB shell version" | Take-Part -Part 3
|
||||||
$mongod = Run-Command "mongod --version" | Select-String "db version " | Take-Part -Part 2
|
$mongod = Run-Command "mongod --version" | Select-String "db version " | Take-Part -Part 2
|
||||||
$p7zip = Run-Command "7z i" | Select-String "7-Zip" | Take-Part -Part 0,2
|
$p7zip = Run-Command "7z i" | Select-String "7-Zip" | Take-Part -Part 0,2
|
||||||
|
$gnuTar = Run-Command "gtar --version" | Select-String "tar" | Take-Part -Part 3
|
||||||
|
$bsdtar = Run-Command "tar --version" | Take-Part -Part 1
|
||||||
|
|
||||||
$markdown += New-MDHeader "Utilities" -Level 3
|
$markdown += New-MDHeader "Utilities" -Level 3
|
||||||
$markdown += New-MDList -Style Unordered -NoNewLine -Lines @(
|
$markdown += New-MDList -Style Unordered -NoNewLine -Lines @(
|
||||||
@@ -164,7 +166,9 @@ $markdown += New-MDList -Style Unordered -NoNewLine -Lines @(
|
|||||||
"helm $helmVersion",
|
"helm $helmVersion",
|
||||||
"mongo $mongo",
|
"mongo $mongo",
|
||||||
"mongod $mongod",
|
"mongod $mongod",
|
||||||
$p7zip
|
$p7zip,
|
||||||
|
"bsdtar $bsdtar - available by 'tar' alias",
|
||||||
|
"GNU Tar $gnuTar - available by 'gtar' alias"
|
||||||
)
|
)
|
||||||
if ($os.IsHigherThanMojave) {
|
if ($os.IsHigherThanMojave) {
|
||||||
$newmanVersion = Run-Command "newman --version"
|
$newmanVersion = Run-Command "newman --version"
|
||||||
|
|||||||
@@ -248,6 +248,10 @@ Describe "Common utilities" {
|
|||||||
It "Apache Ant" {
|
It "Apache Ant" {
|
||||||
"ant -version" | Should -ReturnZeroExitCode
|
"ant -version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
It "GNU Tar" {
|
||||||
|
"gtar --version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Browsers" {
|
Describe "Browsers" {
|
||||||
|
|||||||
Reference in New Issue
Block a user