forked from actions/runner-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ninja-build to the Linux images. It is already present on the Windows builders and is very often used with CMake. Issue: actions#741
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
################################################################################ | ||
## File: ninja.sh | ||
## Desc: Installs ninja | ||
################################################################################ | ||
|
||
# Source the helpers for use with the script | ||
source $HELPER_SCRIPTS/document.sh | ||
source $HELPER_SCRIPTS/apt.sh | ||
|
||
set -e | ||
|
||
echo "Install ninja" | ||
apt-get install -y --no-install-recommends ninja-build | ||
|
||
# Run tests to determine that the software installed as expected | ||
echo "Testing to make sure that script performed as expected, and basic scenarios work" | ||
if ! command -v ninja ; then | ||
echo "$cmd was not installed" | ||
exit 1 | ||
fi | ||
|
||
# Document what was added to the image | ||
echo "Lastly, documenting what we added to the metadata file" | ||
DocumentInstalledItem "ninja" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters