mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-07 10:40:21 +08:00
[MacOS] Add ImageMagick (#5445)
This commit is contained in:
@@ -547,6 +547,11 @@ function Get-YqVersion {
|
||||
return "$yqVersion"
|
||||
}
|
||||
|
||||
function Get-ImageMagickVersion {
|
||||
$imagemagickVersion = Run-Command "magick --version" | Select-Object -First 1 | Take-Part -Part 1,2
|
||||
return "$imagemagickVersion"
|
||||
}
|
||||
|
||||
function Build-PackageManagementEnvironmentTable {
|
||||
return @(
|
||||
@{
|
||||
|
||||
@@ -123,7 +123,8 @@ $utilitiesList = @(
|
||||
(Get-GPGVersion),
|
||||
(Get-SwitchAudioOsxVersion),
|
||||
(Get-SoxVersion),
|
||||
(Get-YqVersion)
|
||||
(Get-YqVersion),
|
||||
(Get-ImageMagickVersion)
|
||||
)
|
||||
|
||||
if ($os.IsLessThanMonterey) {
|
||||
|
||||
@@ -187,3 +187,9 @@ Describe "yq" {
|
||||
"yq --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "imagemagick" {
|
||||
It "imagemagick" {
|
||||
"magick -version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
@@ -224,7 +224,8 @@
|
||||
"libxext",
|
||||
"libxft",
|
||||
"tcl-tk",
|
||||
"yq"
|
||||
"yq",
|
||||
"imagemagick"
|
||||
],
|
||||
"cask_packages": [
|
||||
"julia",
|
||||
|
||||
@@ -213,7 +213,8 @@
|
||||
"libxft",
|
||||
"tcl-tk",
|
||||
"r",
|
||||
"yq"
|
||||
"yq",
|
||||
"imagemagick"
|
||||
],
|
||||
"cask_packages": [
|
||||
"julia"
|
||||
|
||||
@@ -135,7 +135,8 @@
|
||||
"libxft",
|
||||
"tcl-tk",
|
||||
"r",
|
||||
"yq"
|
||||
"yq",
|
||||
"imagemagick"
|
||||
],
|
||||
"cask_packages": [
|
||||
"julia"
|
||||
|
||||
Reference in New Issue
Block a user