Files
runner-images/images/ubuntu/scripts/build/install-gfortran.sh
2023-12-26 12:50:52 +01:00

21 lines
595 B
Bash

#!/bin/bash -e
################################################################################
## File: install-gfortran.sh
## Desc: Install GNU Fortran
################################################################################
source $HELPER_SCRIPTS/install.sh
source $HELPER_SCRIPTS/os.sh
# Install GNU Fortran compiler
add-apt-repository ppa:ubuntu-toolchain-r/test -y
apt-get update -y
versions=$(get_toolset_value '.gfortran.versions[]')
for version in ${versions[*]}; do
echo "Installing $version..."
apt-get install $version -y
done
invoke_tests "Tools" "gfortran"