mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
[macOS] Add compilable brew packages for macOS12 (#10681)
This commit is contained in:
committed by
GitHub
parent
ae99c16b0c
commit
ce5aa1950d
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash -e -o pipefail
|
||||||
|
################################################################################
|
||||||
|
## File: install-compilable-brew-packages.sh
|
||||||
|
## Desc: Install compilable brew packages
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
source ~/utils/utils.sh
|
||||||
|
|
||||||
|
compilable_packages=$(get_toolset_value '.brew.compilable_packages[]')
|
||||||
|
for package in $compilable_packages; do
|
||||||
|
echo "Installing $package..."
|
||||||
|
brew_smart_install "$package"
|
||||||
|
done
|
||||||
|
|
||||||
|
invoke_tests "Common" "Compiled"
|
||||||
@@ -87,7 +87,7 @@ Describe "7-Zip" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Apache Ant" {
|
Describe "Apache Ant" -Skip:($os.IsMonterey) {
|
||||||
It "Apache Ant" {
|
It "Apache Ant" {
|
||||||
"ant -version" | Should -ReturnZeroExitCode
|
"ant -version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
@@ -159,7 +159,7 @@ Describe "Homebrew" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Kotlin" {
|
Describe "Kotlin" -Skip:($os.IsMonterey) {
|
||||||
$kotlinPackages = @("kapt", "kotlin", "kotlinc", "kotlinc-jvm", "kotlin-dce-js")
|
$kotlinPackages = @("kapt", "kotlin", "kotlinc", "kotlinc-jvm", "kotlin-dce-js")
|
||||||
|
|
||||||
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
|
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
|
||||||
@@ -167,12 +167,6 @@ Describe "Kotlin" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "sbt" -Skip:($os.IsVentura -or $os.IsSonoma -or $os.IsSequoia) {
|
|
||||||
It "sbt" {
|
|
||||||
"sbt -version" | Should -ReturnZeroExitCode
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Describe "yq" {
|
Describe "yq" {
|
||||||
It "yq" {
|
It "yq" {
|
||||||
"yq --version" | Should -ReturnZeroExitCode
|
"yq --version" | Should -ReturnZeroExitCode
|
||||||
|
|||||||
@@ -146,3 +146,19 @@ Describe "Colima" -Skip:($os.IsVentura -or $os.IsSonoma -or $os.IsSequoia) {
|
|||||||
"colima version" | Should -ReturnZeroExitCode
|
"colima version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Describe "Compiled" -Skip:(-not $os.IsMonterey) {
|
||||||
|
It "Apache Ant" {
|
||||||
|
"ant -version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
|
||||||
|
$kotlinPackages = @("kapt", "kotlin", "kotlinc", "kotlinc-jvm", "kotlin-dce-js")
|
||||||
|
|
||||||
|
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
|
||||||
|
"$toolName -version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
|
||||||
|
It "sbt" {
|
||||||
|
"sbt -version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -266,7 +266,8 @@ build {
|
|||||||
"${path.root}/../scripts/build/install-pypy.sh",
|
"${path.root}/../scripts/build/install-pypy.sh",
|
||||||
"${path.root}/../scripts/build/install-pipx-packages.sh",
|
"${path.root}/../scripts/build/install-pipx-packages.sh",
|
||||||
"${path.root}/../scripts/build/install-bicep.sh",
|
"${path.root}/../scripts/build/install-bicep.sh",
|
||||||
"${path.root}/../scripts/build/install-codeql-bundle.sh"
|
"${path.root}/../scripts/build/install-codeql-bundle.sh",
|
||||||
|
"${path.root}/../scripts/build/install-compilable-brew-packages.sh"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -184,7 +184,6 @@
|
|||||||
},
|
},
|
||||||
"brew": {
|
"brew": {
|
||||||
"common_packages": [
|
"common_packages": [
|
||||||
"ant",
|
|
||||||
"aria2",
|
"aria2",
|
||||||
"azure-cli",
|
"azure-cli",
|
||||||
"bazelisk",
|
"bazelisk",
|
||||||
@@ -194,13 +193,11 @@
|
|||||||
"gh",
|
"gh",
|
||||||
"gnupg",
|
"gnupg",
|
||||||
"gnu-tar",
|
"gnu-tar",
|
||||||
"kotlin",
|
|
||||||
"libpq",
|
"libpq",
|
||||||
"p7zip",
|
"p7zip",
|
||||||
"packer",
|
"packer",
|
||||||
"perl",
|
"perl",
|
||||||
"pkg-config",
|
"pkg-config",
|
||||||
"sbt",
|
|
||||||
"subversion",
|
"subversion",
|
||||||
"swiftformat",
|
"swiftformat",
|
||||||
"swig",
|
"swig",
|
||||||
@@ -222,6 +219,11 @@
|
|||||||
"vagrant",
|
"vagrant",
|
||||||
"virtualbox",
|
"virtualbox",
|
||||||
"parallels"
|
"parallels"
|
||||||
|
],
|
||||||
|
"compilable_packages": [
|
||||||
|
"ant",
|
||||||
|
"kotlin",
|
||||||
|
"sbt"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"gcc": {
|
"gcc": {
|
||||||
|
|||||||
Reference in New Issue
Block a user