mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
[macOS] Pin version for tcl/tk and pkg-config (#10971)
This commit is contained in:
committed by
GitHub
parent
9b55b80556
commit
5cd2ef1b0a
15
images/macos/scripts/build/install-pkg-config.sh
Normal file
15
images/macos/scripts/build/install-pkg-config.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/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"
|
||||
@@ -538,7 +538,7 @@ function Get-LibXextVersion {
|
||||
}
|
||||
|
||||
function Get-TclTkVersion {
|
||||
$tcltkVersion = (Run-Command "brew info --json tcl-tk" | ConvertFrom-Json).installed.version
|
||||
$tcltkVersion = (Run-Command "brew info --json tcl-tk@8" | ConvertFrom-Json).installed.version
|
||||
return $tcltkVersion
|
||||
}
|
||||
|
||||
|
||||
@@ -168,3 +168,9 @@ Describe "Unxip" {
|
||||
"unxip --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "pkg-config" {
|
||||
It "pkg-config" {
|
||||
"pkg-config --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
@@ -218,7 +218,8 @@ 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-unxip.sh",
|
||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -220,7 +220,8 @@ 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-unxip.sh",
|
||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -217,7 +217,8 @@ 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-common-utils.sh",
|
||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -219,7 +219,8 @@ 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-common-utils.sh",
|
||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -212,7 +212,8 @@ 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-common-utils.sh",
|
||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -214,7 +214,8 @@ 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-common-utils.sh",
|
||||
"${path.root}/../scripts/build/install-pkg-config.sh"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -72,9 +72,8 @@
|
||||
"p7zip",
|
||||
"packer",
|
||||
"perl",
|
||||
"pkg-config",
|
||||
"swiftformat",
|
||||
"tcl-tk",
|
||||
"tcl-tk@8",
|
||||
"zstd",
|
||||
"gmp",
|
||||
"yq",
|
||||
|
||||
@@ -75,9 +75,8 @@
|
||||
"p7zip",
|
||||
"packer",
|
||||
"perl",
|
||||
"pkg-config",
|
||||
"swiftformat",
|
||||
"tcl-tk",
|
||||
"tcl-tk@8",
|
||||
"zstd",
|
||||
"gmp",
|
||||
"yq",
|
||||
|
||||
@@ -67,7 +67,6 @@
|
||||
"p7zip",
|
||||
"packer",
|
||||
"perl",
|
||||
"pkg-config",
|
||||
"swiftformat",
|
||||
"zstd",
|
||||
"gmp",
|
||||
|
||||
Reference in New Issue
Block a user