mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
* add missing tests * fix naming and nvm test * fix containers test and bring pwsh test back * remove pwsh test * small fix
20 lines
783 B
Bash
20 lines
783 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: cmake.sh
|
|
## Desc: Installs CMake
|
|
################################################################################
|
|
|
|
# Test to see if the software in question is already installed, if not install it
|
|
echo "Checking to see if the installer script has already been run"
|
|
if command -v cmake; then
|
|
echo "cmake is already installed"
|
|
else
|
|
url=$(curl -s https://api.github.com/repos/Kitware/CMake/releases/latest | jq -r '.assets[].browser_download_url | select(contains("Linux-x86_64.sh"))')
|
|
curl -sL ${url} -o cmakeinstall.sh \
|
|
&& chmod +x cmakeinstall.sh \
|
|
&& ./cmakeinstall.sh --prefix=/usr/local --exclude-subdir \
|
|
&& rm cmakeinstall.sh
|
|
fi
|
|
|
|
invoke_tests "Tools" "Cmake"
|