mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Ubuntu] Add Ninja (#11706)
This commit is contained in:
17
images/ubuntu/scripts/build/install-ninja.sh
Normal file
17
images/ubuntu/scripts/build/install-ninja.sh
Normal 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"
|
||||
Reference in New Issue
Block a user