[Ubuntu] Add Ninja (#11706)

This commit is contained in:
Alexey-Ayupov
2025-03-04 15:57:10 +01:00
committed by GitHub
parent 9e8d521bef
commit 0f4b96df94
7 changed files with 50 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/bash -e
################################################################################
## File: install-ninja.sh
## Desc: Install ninja-build
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
# Install ninja
download_url=$(resolve_github_release_asset_url "ninja-build/ninja" "endswith(\"ninja-linux.zip\")" "latest")
ninja_binary_path=$(download_with_retry "${download_url}")
# Unzip the ninja binary
unzip -qq "$ninja_binary_path" -d /usr/local/bin
invoke_tests "Tools" "Ninja"