mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +00:00
[macOS] Add unxip for macOS13
This commit is contained in:
committed by
sarathrajsrinivasan
parent
bf6ac0db93
commit
adf6d83ab9
15
images/macos/scripts/build/install-unxip.sh
Normal file
15
images/macos/scripts/build/install-unxip.sh
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash -e -o pipefail
|
||||||
|
################################################################################
|
||||||
|
## File: install-unxip.sh
|
||||||
|
## Desc: Install unxip
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
source ~/utils/utils.sh
|
||||||
|
|
||||||
|
echo "Installing unxip..."
|
||||||
|
unxip_pkg=$(download_with_retry "https://github.com/saagarjha/unxip/releases/download/v3.1/unxip")
|
||||||
|
unxip_pkg_sha256="926ecd7bffa201c7b2b8a729fc70fbf228cf624a0e6856c13f935a97fa4fc71a"
|
||||||
|
use_checksum_comparison $unxip_pkg $unxip_pkg_sha256
|
||||||
|
install "$unxip_pkg" /usr/local/bin/unxip
|
||||||
|
|
||||||
|
invoke_tests "Common" "Unxip"
|
||||||
@@ -149,6 +149,7 @@ if ($os.IsMonterey) {
|
|||||||
$utilities.AddToolVersion("Vagrant", $(Get-VagrantVersion))
|
$utilities.AddToolVersion("Vagrant", $(Get-VagrantVersion))
|
||||||
$utilities.AddToolVersion("VirtualBox", $(Get-VirtualBoxVersion))
|
$utilities.AddToolVersion("VirtualBox", $(Get-VirtualBoxVersion))
|
||||||
}
|
}
|
||||||
|
$utilities.AddToolVersion("Unxip", $(Get-UnxipVersion))
|
||||||
$utilities.AddToolVersion("yq", $(Get-YqVersion))
|
$utilities.AddToolVersion("yq", $(Get-YqVersion))
|
||||||
$utilities.AddToolVersion("zstd", $(Get-ZstdVersion))
|
$utilities.AddToolVersion("zstd", $(Get-ZstdVersion))
|
||||||
|
|
||||||
|
|||||||
@@ -619,3 +619,8 @@ function Get-XcodesVersion {
|
|||||||
$XcodesVersion = Run-Command "xcodes version"
|
$XcodesVersion = Run-Command "xcodes version"
|
||||||
return $XcodesVersion
|
return $XcodesVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-UnxipVersion {
|
||||||
|
$unxipVersion = Run-Command "unxip --version" | Take-Part -Part 1
|
||||||
|
return $unxipVersion
|
||||||
|
}
|
||||||
|
|||||||
@@ -162,3 +162,9 @@ Describe "Compiled" -Skip:(-not $os.IsMonterey) {
|
|||||||
"sbt -version" | Should -ReturnZeroExitCode
|
"sbt -version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Describe "Unxip" {
|
||||||
|
It "Unxip" {
|
||||||
|
"unxip --version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -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-unxip.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-unxip.sh"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,6 @@
|
|||||||
"zstd",
|
"zstd",
|
||||||
"gmp",
|
"gmp",
|
||||||
"yq",
|
"yq",
|
||||||
"unxip",
|
|
||||||
"xcbeautify",
|
"xcbeautify",
|
||||||
"xcodes"
|
"xcodes"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user