Files
runner-images/images/macos/scripts/build/install-gcc.sh
T

22 lines
622 B
Bash
Raw Normal View History

#!/bin/bash -e -o pipefail
2023-11-28 02:25:03 +01:00
################################################################################
## File: install-gcc.sh
## Desc: Install GCC
################################################################################
source ~/utils/utils.sh
2020-09-10 14:34:08 +03:00
2021-05-13 11:45:33 +03:00
gccVersions=$(get_toolset_value '.gcc.versions | .[]')
2020-09-10 14:34:08 +03:00
2021-05-13 11:45:33 +03:00
for gccVersion in $gccVersions; do
brew_smart_install "gcc@${gccVersion}"
done
2020-12-03 18:40:19 +03:00
# Delete default gfortran link if it exists https://github.com/actions/runner-images/issues/1280
gfortranPath=$(which gfortran) || true
if [[ $gfortranPath ]]; then
2021-05-13 11:45:33 +03:00
rm $gfortranPath
fi
invoke_tests "Common" "GCC"