Files
runner-images/images/linux/scripts/installers/gcc.sh
T

28 lines
675 B
Bash
Raw Normal View History

2020-10-07 13:49:40 +05:00
#!/bin/bash -e
################################################################################
## File: gcc.sh
## Desc: Installs GNU C++
################################################################################
2020-09-24 20:49:22 +03:00
# Source the helpers for use with the script
source $HELPER_SCRIPTS/os.sh
source $HELPER_SCRIPTS/install.sh
2020-09-24 20:49:22 +03:00
2020-02-04 17:14:16 +03:00
function InstallGcc {
version=$1
echo "Installing $version..."
apt-get install $version -y
}
# Install GNU C++ compiler
2020-02-05 14:08:16 +03:00
add-apt-repository ppa:ubuntu-toolchain-r/test -y
apt-get update -y
versions=$(get_toolset_value '.gcc.versions[]')
2020-09-24 20:49:22 +03:00
for version in ${versions[*]}; do
2020-02-04 17:14:16 +03:00
InstallGcc $version
done
invoke_tests "Tools" "gcc"