mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
* Create symlink for test running * Fix 1604 and 2004 templates * Fix php and haskell running * Minor fix * Fix new added tests * Fix symlink * Minor fix * Fix script permissions * Minor fix * Fix firefox and rust tests * Fix new merged tests
28 lines
671 B
Bash
28 lines
671 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: gfortran.sh
|
|
## Desc: Installs GNU Fortran
|
|
################################################################################
|
|
|
|
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
|
|
|
|
toolset="$INSTALLER_SCRIPT_FOLDER/toolset.json"
|
|
versions=$(jq -r '.gfortran.versions[]' $toolset)
|
|
|
|
for version in ${versions[*]}
|
|
do
|
|
InstallFortran $version
|
|
done
|
|
|
|
invoke_tests "Tools" "gfortran" |