mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
* [ubuntu] Rename build scripts * [ubuntu] Change reboot to inline shell * [ubuntu] Move disk space validation to pester tests * [ubuntu] Rename helper and tests files * [ubuntu] Changes to cleanup, post-deployment and r scripts
28 lines
667 B
Bash
28 lines
667 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: install-gfortran.sh
|
|
## Desc: Install GNU Fortran
|
|
################################################################################
|
|
source $HELPER_SCRIPTS/install.sh
|
|
source $HELPER_SCRIPTS/os.sh
|
|
|
|
function InstallFortran {
|
|
version=$1
|
|
|
|
echo "Installing $version..."
|
|
apt-get install $version -y
|
|
}
|
|
|
|
# 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
|
|
InstallFortran $version
|
|
done
|
|
|
|
invoke_tests "Tools" "gfortran"
|