mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 14:26:48 +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 {
|
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
|
return $tcltkVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -168,3 +168,9 @@ Describe "Unxip" {
|
|||||||
"unxip --version" | Should -ReturnZeroExitCode
|
"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-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,7 +220,8 @@ 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,7 +217,8 @@ 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,7 +219,8 @@ 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,7 +212,8 @@ 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,7 +214,8 @@ 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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -72,9 +72,8 @@
|
|||||||
"p7zip",
|
"p7zip",
|
||||||
"packer",
|
"packer",
|
||||||
"perl",
|
"perl",
|
||||||
"pkg-config",
|
|
||||||
"swiftformat",
|
"swiftformat",
|
||||||
"tcl-tk",
|
"tcl-tk@8",
|
||||||
"zstd",
|
"zstd",
|
||||||
"gmp",
|
"gmp",
|
||||||
"yq",
|
"yq",
|
||||||
|
|||||||
@@ -75,9 +75,8 @@
|
|||||||
"p7zip",
|
"p7zip",
|
||||||
"packer",
|
"packer",
|
||||||
"perl",
|
"perl",
|
||||||
"pkg-config",
|
|
||||||
"swiftformat",
|
"swiftformat",
|
||||||
"tcl-tk",
|
"tcl-tk@8",
|
||||||
"zstd",
|
"zstd",
|
||||||
"gmp",
|
"gmp",
|
||||||
"yq",
|
"yq",
|
||||||
|
|||||||
@@ -67,7 +67,6 @@
|
|||||||
"p7zip",
|
"p7zip",
|
||||||
"packer",
|
"packer",
|
||||||
"perl",
|
"perl",
|
||||||
"pkg-config",
|
|
||||||
"swiftformat",
|
"swiftformat",
|
||||||
"zstd",
|
"zstd",
|
||||||
"gmp",
|
"gmp",
|
||||||
|
|||||||
Reference in New Issue
Block a user