[Ubuntu] Install gcc@12 from brew (#6258)

This commit is contained in:
Mikhail Koliada
2022-09-19 15:36:04 +02:00
committed by GitHub
parent 518f5407fa
commit 3fab712c1e
5 changed files with 37 additions and 8 deletions

View File

@@ -27,6 +27,12 @@ echo "Validate the installation reloading /etc/environment"
reloadEtcEnvironment
# Install additional brew packages
# brew GCC installation needed because the default Ubuntu components
# are too old for current brew software
# See:
# https://github.com/Homebrew/homebrew-core/issues/110877
brew_packages=$(get_toolset_value .brew[].name)
for package in $brew_packages; do
echo "Install $package"

View File

@@ -257,16 +257,22 @@ Describe "HHVM" -Skip:(Test-IsUbuntu22) {
}
Describe "Homebrew" {
$brewToolset = (Get-ToolsetContent).brew
$testCases = $brewToolset | ForEach-Object { @{brewName = $_.name; brewCommand = $_.command} }
It "homebrew" {
"brew --version" | Should -ReturnZeroExitCode
}
Context "Packages" {
$testCases = (Get-ToolsetContent).brew | ForEach-Object { @{ ToolName = $_.name } }
It "<ToolName>" -TestCases $testCases {
"$ToolName --version" | Should -Not -BeNullOrEmpty
It "zstd has /usr/local/bin symlink" {
"/usr/local/bin/zstd" | Should -Exist
}
It "homebrew package <brewName>" -TestCases $testCases {
$brewPrefix = brew --prefix $brewName
$brewPackage = Join-Path $brewPrefix "bin" $brewCommand
"$brewPackage --version" | Should -ReturnZeroExitCode
}
}

View File

@@ -217,7 +217,14 @@
]
},
"brew": [
{"name": "zstd"}
{
"name": "gcc@12",
"command": "gcc-12"
},
{
"name": "zstd",
"command": "zstd"
}
],
"docker": {
"images": [

View File

@@ -217,7 +217,14 @@
]
},
"brew": [
{"name": "zstd"}
{
"name": "gcc@12",
"command": "gcc-12"
},
{
"name": "zstd",
"command": "zstd"
}
],
"docker": {
"images": [

View File

@@ -201,7 +201,10 @@
]
},
"brew": [
{"name": "zstd"}
{
"name": "zstd",
"command": "zstd"
}
],
"docker": {
"images": [