Files
runner-images/images/ubuntu/scripts/build/install-gfortran.sh
T

23 lines
641 B
Bash
Raw Normal View History

2020-10-07 13:49:40 +05:00
#!/bin/bash -e
2020-02-04 17:14:16 +03:00
################################################################################
2023-11-22 21:49:23 +01:00
## File: install-gfortran.sh
## Desc: Install GNU Fortran
2020-02-04 17:14:16 +03:00
################################################################################
2023-12-29 12:36:27 +01:00
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
2020-11-25 11:13:17 +04:00
source $HELPER_SCRIPTS/os.sh
2020-02-04 17:14:16 +03:00
# Install GNU Fortran compiler
2020-02-05 14:08:16 +03:00
add-apt-repository ppa:ubuntu-toolchain-r/test -y
2020-02-04 17:14:16 +03:00
apt-get update -y
versions=$(get_toolset_value '.gfortran.versions[]')
2020-11-25 11:13:17 +04:00
2023-12-26 12:50:52 +01:00
for version in ${versions[*]}; do
echo "Installing $version..."
apt-get install $version -y
2020-02-04 17:14:16 +03:00
done
2023-11-22 21:49:23 +01:00
invoke_tests "Tools" "gfortran"