mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
[Ubuntu] pinning the cmake older version 3.31.6 (#11933)
Co-authored-by: Ravi Akshintala <raviakshintalagithub.com@Ravis-Laptop.local>
This commit is contained in:
@@ -14,11 +14,11 @@ if command -v cmake; then
|
|||||||
echo "cmake is already installed"
|
echo "cmake is already installed"
|
||||||
else
|
else
|
||||||
# Download script to install CMake
|
# Download script to install CMake
|
||||||
download_url=$(resolve_github_release_asset_url "Kitware/CMake" "endswith(\"inux-x86_64.sh\")" "latest")
|
download_url=$(resolve_github_release_asset_url "Kitware/CMake" "endswith(\"inux-x86_64.sh\")" "3.31.6")
|
||||||
curl -fsSL "${download_url}" -o cmakeinstall.sh
|
curl -fsSL "${download_url}" -o cmakeinstall.sh
|
||||||
|
|
||||||
# Supply chain security - CMake
|
# Supply chain security - CMake
|
||||||
hash_url=$(resolve_github_release_asset_url "Kitware/CMake" "endswith(\"SHA-256.txt\")" "latest")
|
hash_url=$(resolve_github_release_asset_url "Kitware/CMake" "endswith(\"SHA-256.txt\")" "3.31.6")
|
||||||
external_hash=$(get_checksum_from_url "$hash_url" "linux-x86_64.sh" "SHA256")
|
external_hash=$(get_checksum_from_url "$hash_url" "linux-x86_64.sh" "SHA256")
|
||||||
use_checksum_comparison "cmakeinstall.sh" "$external_hash"
|
use_checksum_comparison "cmakeinstall.sh" "$external_hash"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user