mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 12:06:59 +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("OpenSSL", $(Get-OpenSSLVersion))
|
||||||
$utilities.AddToolVersion("Packer", $(Get-PackerVersion))
|
$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)) {
|
if ((-not $os.IsVentura) -and (-not $os.IsSonoma) -and (-not $os.IsSequoia)) {
|
||||||
$utilities.AddToolVersion("PostgreSQL", $(Get-PostgresServerVersion))
|
$utilities.AddToolVersion("PostgreSQL", $(Get-PostgresServerVersion))
|
||||||
$utilities.AddToolVersion("psql (PostgreSQL)", $(Get-PostgresClientVersion))
|
$utilities.AddToolVersion("psql (PostgreSQL)", $(Get-PostgresClientVersion))
|
||||||
|
|||||||
@@ -605,9 +605,9 @@ function Get-ColimaVersion {
|
|||||||
return $colimaVersion
|
return $colimaVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-PKGConfigVersion {
|
function Get-PKGConfVersion {
|
||||||
$pkgconfigVersion = Run-Command "pkg-config --version"
|
$pkgconfVersion = Run-Command "pkgconf --version"
|
||||||
return $pkgconfigVersion
|
return $pkgconfVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-XcbeautifyVersion {
|
function Get-XcbeautifyVersion {
|
||||||
|
|||||||
@@ -178,3 +178,9 @@ Describe "imagemagick" -Skip:($os.IsVentura -or $os.IsSonoma -or $os.IsSequoia)
|
|||||||
"magick -version" | Should -ReturnZeroExitCode
|
"magick -version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Describe "pkgconf" {
|
||||||
|
It "pkgconf" {
|
||||||
|
"pkgconf --version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -168,9 +168,3 @@ Describe "Unxip" {
|
|||||||
"unxip --version" | Should -ReturnZeroExitCode
|
"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-git.sh",
|
||||||
"${path.root}/../scripts/build/install-node.sh",
|
"${path.root}/../scripts/build/install-node.sh",
|
||||||
"${path.root}/../scripts/build/install-common-utils.sh",
|
"${path.root}/../scripts/build/install-common-utils.sh",
|
||||||
"${path.root}/../scripts/build/install-unxip.sh",
|
"${path.root}/../scripts/build/install-unxip.sh"
|
||||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -220,8 +220,7 @@ build {
|
|||||||
"${path.root}/../scripts/build/install-git.sh",
|
"${path.root}/../scripts/build/install-git.sh",
|
||||||
"${path.root}/../scripts/build/install-node.sh",
|
"${path.root}/../scripts/build/install-node.sh",
|
||||||
"${path.root}/../scripts/build/install-common-utils.sh",
|
"${path.root}/../scripts/build/install-common-utils.sh",
|
||||||
"${path.root}/../scripts/build/install-unxip.sh",
|
"${path.root}/../scripts/build/install-unxip.sh"
|
||||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -217,8 +217,7 @@ build {
|
|||||||
"${path.root}/../scripts/build/install-rubygems.sh",
|
"${path.root}/../scripts/build/install-rubygems.sh",
|
||||||
"${path.root}/../scripts/build/install-git.sh",
|
"${path.root}/../scripts/build/install-git.sh",
|
||||||
"${path.root}/../scripts/build/install-node.sh",
|
"${path.root}/../scripts/build/install-node.sh",
|
||||||
"${path.root}/../scripts/build/install-common-utils.sh",
|
"${path.root}/../scripts/build/install-common-utils.sh"
|
||||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -219,8 +219,7 @@ build {
|
|||||||
"${path.root}/../scripts/build/install-rubygems.sh",
|
"${path.root}/../scripts/build/install-rubygems.sh",
|
||||||
"${path.root}/../scripts/build/install-git.sh",
|
"${path.root}/../scripts/build/install-git.sh",
|
||||||
"${path.root}/../scripts/build/install-node.sh",
|
"${path.root}/../scripts/build/install-node.sh",
|
||||||
"${path.root}/../scripts/build/install-common-utils.sh",
|
"${path.root}/../scripts/build/install-common-utils.sh"
|
||||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -212,8 +212,7 @@ build {
|
|||||||
"${path.root}/../scripts/build/install-rubygems.sh",
|
"${path.root}/../scripts/build/install-rubygems.sh",
|
||||||
"${path.root}/../scripts/build/install-git.sh",
|
"${path.root}/../scripts/build/install-git.sh",
|
||||||
"${path.root}/../scripts/build/install-node.sh",
|
"${path.root}/../scripts/build/install-node.sh",
|
||||||
"${path.root}/../scripts/build/install-common-utils.sh",
|
"${path.root}/../scripts/build/install-common-utils.sh"
|
||||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -214,8 +214,7 @@ build {
|
|||||||
"${path.root}/../scripts/build/install-rubygems.sh",
|
"${path.root}/../scripts/build/install-rubygems.sh",
|
||||||
"${path.root}/../scripts/build/install-git.sh",
|
"${path.root}/../scripts/build/install-git.sh",
|
||||||
"${path.root}/../scripts/build/install-node.sh",
|
"${path.root}/../scripts/build/install-node.sh",
|
||||||
"${path.root}/../scripts/build/install-common-utils.sh",
|
"${path.root}/../scripts/build/install-common-utils.sh"
|
||||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -77,6 +77,7 @@
|
|||||||
"p7zip",
|
"p7zip",
|
||||||
"packer",
|
"packer",
|
||||||
"perl",
|
"perl",
|
||||||
|
"pkgconf",
|
||||||
"swiftformat",
|
"swiftformat",
|
||||||
"tcl-tk@8",
|
"tcl-tk@8",
|
||||||
"zstd",
|
"zstd",
|
||||||
|
|||||||
@@ -80,6 +80,7 @@
|
|||||||
"p7zip",
|
"p7zip",
|
||||||
"packer",
|
"packer",
|
||||||
"perl",
|
"perl",
|
||||||
|
"pkgconf",
|
||||||
"swiftformat",
|
"swiftformat",
|
||||||
"tcl-tk@8",
|
"tcl-tk@8",
|
||||||
"zstd",
|
"zstd",
|
||||||
|
|||||||
@@ -72,6 +72,7 @@
|
|||||||
"p7zip",
|
"p7zip",
|
||||||
"packer",
|
"packer",
|
||||||
"perl",
|
"perl",
|
||||||
|
"pkgconf",
|
||||||
"swiftformat",
|
"swiftformat",
|
||||||
"zstd",
|
"zstd",
|
||||||
"gmp",
|
"gmp",
|
||||||
|
|||||||
Reference in New Issue
Block a user