Files
runner-images/images/ubuntu/scripts/build/install-gcc-compilers.sh
Erik Bershel 3d2dd97aa7 [Ubuntu] Add Ubuntu-24.04 base image (#9754)
Co-authored-by: Alexey Ayupov <alexey-ayupov@github.com>
2024-04-26 23:18:26 +02:00

25 lines
673 B
Bash

#!/bin/bash -e
################################################################################
## File: install-gcc-compilers.sh
## Desc: Install GNU C++ compilers
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/os.sh
source $HELPER_SCRIPTS/install.sh
# Install GNU C++ compiler
if ! is_ubuntu24 ; then
add-apt-repository ppa:ubuntu-toolchain-r/test -y
apt-get update -y
fi
versions=$(get_toolset_value '.gcc.versions[]')
for version in ${versions[*]}; do
echo "Installing $version..."
apt-get install $version -y
done
invoke_tests "Tools" "gcc"