mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
[macOS] Replace pkg-config with pkgconf in all macOS images (#11015)
This commit is contained in:
committed by
GitHub
parent
d22a5ec4c1
commit
26b592de2b
@@ -1,15 +0,0 @@
|
||||
#!/bin/bash -e -o pipefail
|
||||
################################################################################
|
||||
## File: install-pkg-config.sh
|
||||
## Desc: Install pkg-config
|
||||
################################################################################
|
||||
|
||||
source ~/utils/utils.sh
|
||||
|
||||
echo "Installing pkg-config..."
|
||||
|
||||
brew tap-new my-org/old-formulas
|
||||
brew extract pkg-config my-org/old-formulas --version=0.29.2
|
||||
brew install my-org/old-formulas/pkg-config@0.29.2
|
||||
|
||||
invoke_tests "Common" "pkg-config"
|
||||
@@ -137,7 +137,7 @@ if ((-not $os.IsVentura) -and (-not $os.IsSonoma) -and (-not $os.IsSequoia)) {
|
||||
}
|
||||
$utilities.AddToolVersion("OpenSSL", $(Get-OpenSSLVersion))
|
||||
$utilities.AddToolVersion("Packer", $(Get-PackerVersion))
|
||||
$utilities.AddToolVersion("pkg-config", $(Get-PKGConfigVersion))
|
||||
$utilities.AddToolVersion("pkgconf", $(Get-PKGConfVersion))
|
||||
if ((-not $os.IsVentura) -and (-not $os.IsSonoma) -and (-not $os.IsSequoia)) {
|
||||
$utilities.AddToolVersion("PostgreSQL", $(Get-PostgresServerVersion))
|
||||
$utilities.AddToolVersion("psql (PostgreSQL)", $(Get-PostgresClientVersion))
|
||||
|
||||
@@ -605,9 +605,9 @@ function Get-ColimaVersion {
|
||||
return $colimaVersion
|
||||
}
|
||||
|
||||
function Get-PKGConfigVersion {
|
||||
$pkgconfigVersion = Run-Command "pkg-config --version"
|
||||
return $pkgconfigVersion
|
||||
function Get-PKGConfVersion {
|
||||
$pkgconfVersion = Run-Command "pkgconf --version"
|
||||
return $pkgconfVersion
|
||||
}
|
||||
|
||||
function Get-XcbeautifyVersion {
|
||||
|
||||
@@ -178,3 +178,9 @@ Describe "imagemagick" -Skip:($os.IsVentura -or $os.IsSonoma -or $os.IsSequoia)
|
||||
"magick -version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "pkgconf" {
|
||||
It "pkgconf" {
|
||||
"pkgconf --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,9 +168,3 @@ Describe "Unxip" {
|
||||
"unxip --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "pkg-config" {
|
||||
It "pkg-config" {
|
||||
"pkg-config --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
@@ -218,8 +218,7 @@ build {
|
||||
"${path.root}/../scripts/build/install-git.sh",
|
||||
"${path.root}/../scripts/build/install-node.sh",
|
||||
"${path.root}/../scripts/build/install-common-utils.sh",
|
||||
"${path.root}/../scripts/build/install-unxip.sh",
|
||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
||||
"${path.root}/../scripts/build/install-unxip.sh"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -220,8 +220,7 @@ build {
|
||||
"${path.root}/../scripts/build/install-git.sh",
|
||||
"${path.root}/../scripts/build/install-node.sh",
|
||||
"${path.root}/../scripts/build/install-common-utils.sh",
|
||||
"${path.root}/../scripts/build/install-unxip.sh",
|
||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
||||
"${path.root}/../scripts/build/install-unxip.sh"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -217,8 +217,7 @@ build {
|
||||
"${path.root}/../scripts/build/install-rubygems.sh",
|
||||
"${path.root}/../scripts/build/install-git.sh",
|
||||
"${path.root}/../scripts/build/install-node.sh",
|
||||
"${path.root}/../scripts/build/install-common-utils.sh",
|
||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
||||
"${path.root}/../scripts/build/install-common-utils.sh"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -219,8 +219,7 @@ build {
|
||||
"${path.root}/../scripts/build/install-rubygems.sh",
|
||||
"${path.root}/../scripts/build/install-git.sh",
|
||||
"${path.root}/../scripts/build/install-node.sh",
|
||||
"${path.root}/../scripts/build/install-common-utils.sh",
|
||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
||||
"${path.root}/../scripts/build/install-common-utils.sh"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -212,8 +212,7 @@ build {
|
||||
"${path.root}/../scripts/build/install-rubygems.sh",
|
||||
"${path.root}/../scripts/build/install-git.sh",
|
||||
"${path.root}/../scripts/build/install-node.sh",
|
||||
"${path.root}/../scripts/build/install-common-utils.sh",
|
||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
||||
"${path.root}/../scripts/build/install-common-utils.sh"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -214,8 +214,7 @@ build {
|
||||
"${path.root}/../scripts/build/install-rubygems.sh",
|
||||
"${path.root}/../scripts/build/install-git.sh",
|
||||
"${path.root}/../scripts/build/install-node.sh",
|
||||
"${path.root}/../scripts/build/install-common-utils.sh",
|
||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
||||
"${path.root}/../scripts/build/install-common-utils.sh"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
"p7zip",
|
||||
"packer",
|
||||
"perl",
|
||||
"pkgconf",
|
||||
"swiftformat",
|
||||
"tcl-tk@8",
|
||||
"zstd",
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
"p7zip",
|
||||
"packer",
|
||||
"perl",
|
||||
"pkgconf",
|
||||
"swiftformat",
|
||||
"tcl-tk@8",
|
||||
"zstd",
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
"p7zip",
|
||||
"packer",
|
||||
"perl",
|
||||
"pkgconf",
|
||||
"swiftformat",
|
||||
"zstd",
|
||||
"gmp",
|
||||
|
||||
Reference in New Issue
Block a user