mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Merge pull request #1645 from al-cheb/al-cheb/remove-pkgs-bigsur
[macOS] Remove R and virtualbox packages for macOS Big Sur
This commit is contained in:
@@ -42,11 +42,16 @@ done
|
||||
# brew cask install
|
||||
bcask_common_utils=(
|
||||
julia
|
||||
virtualbox
|
||||
vagrant
|
||||
r
|
||||
)
|
||||
|
||||
if is_Less_BigSur; then
|
||||
bcask_common_utils+=(
|
||||
virtualbox
|
||||
vagrant
|
||||
r
|
||||
)
|
||||
fi
|
||||
|
||||
for package in ${bcask_common_utils[@]}; do
|
||||
echo "Install $package"
|
||||
brew cask install $package
|
||||
|
||||
@@ -55,6 +55,10 @@ if ( -not $os.IsHighSierra) {
|
||||
$markdown += New-MDList -Style Unordered -NoNewLine -Lines $lines
|
||||
}
|
||||
|
||||
if ($os.IsLessThanBigSur) {
|
||||
$markdown += New-MDList -Style Unordered -Lines @(Get-RVersion) -NoNewLine
|
||||
}
|
||||
|
||||
$markdown += New-MDList -Style Unordered -Lines @(
|
||||
"Node.js ${nodejsVersion}"
|
||||
"NVM ${nvmVersion}"
|
||||
@@ -63,7 +67,6 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
||||
$python3Version,
|
||||
"Ruby ${rubyVersion}",
|
||||
(Get-DotnetVersionList),
|
||||
(Get-RVersion),
|
||||
"Go ${goVersion}",
|
||||
"$phpVersion",
|
||||
"$juliaVersion"
|
||||
@@ -139,8 +142,6 @@ $bazelVersion = Run-Command "bazel --version" | Take-Part -Part 0 -Delimiter "-"
|
||||
$bazeliskVersion = Run-Command "bazelisk version" | Select-String "Bazelisk version:" | Take-Part -Part 1 -Delimiter ":"
|
||||
$packerVersion = Run-Command "packer --version"
|
||||
$helmVersion = Run-Command "helm version --short"
|
||||
$vbox = Run-Command "vboxmanage -v"
|
||||
$vagrant = Run-Command "vagrant -v"
|
||||
$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
|
||||
$p7zip = Run-Command "7z i" | Select-String "7-Zip" | Take-Part -Part 0,2
|
||||
@@ -166,10 +167,8 @@ $markdown += New-MDList -Style Unordered -NoNewLine -Lines @(
|
||||
$bazelVersion,
|
||||
"bazelisk $($bazeliskVersion.Trim())",
|
||||
"helm $helmVersion",
|
||||
"virtualbox $vbox",
|
||||
"mongo $mongo",
|
||||
"mongod $mongod",
|
||||
"$vagrant",
|
||||
$p7zip
|
||||
)
|
||||
if ($os.IsHigherThanMojave) {
|
||||
@@ -177,8 +176,14 @@ if ($os.IsHigherThanMojave) {
|
||||
$markdown += New-MDList -Lines "Newman $newmanVersion" -Style Unordered -NoNewLine
|
||||
}
|
||||
if ($os.IsLessThanBigSur) {
|
||||
$vagrant = Run-Command "vagrant -v"
|
||||
$vbox = Run-Command "vboxmanage -v"
|
||||
$parallelVersion = Run-Command "parallel --version" | Select-String "GNU parallel" | Select-Object -First 1
|
||||
$markdown += New-MDList -Lines $parallelVersion -Style Unordered
|
||||
$markdown += New-MDList -Style Unordered -Lines @(
|
||||
"virtualbox $vbox",
|
||||
$vagrant,
|
||||
$parallelVersion
|
||||
)
|
||||
}
|
||||
$markdown += New-MDNewLine
|
||||
|
||||
|
||||
@@ -221,11 +221,11 @@ Describe "Common utilities" {
|
||||
"helm version --short" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "virtualbox" {
|
||||
It "virtualbox" -Skip:($os.IsBigSur) {
|
||||
"vboxmanage -v" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "vagrant" {
|
||||
It "vagrant" -Skip:($os.IsBigSur) {
|
||||
"vagrant --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user