[macOS] Add GCC 11 (#3361)

* Add gcc@11 to macOS images

* Change tests and software report to use gcc toolset versions

* Add natural sort
This commit is contained in:
Mikhail Timofeev
2021-05-13 11:45:33 +03:00
committed by GitHub
parent 3b20fa31db
commit 0f3523c0af
7 changed files with 40 additions and 13 deletions

View File

@@ -1,15 +1,16 @@
#!/bin/bash -e -o pipefail
source ~/utils/utils.sh
echo "Installing GCC@8 using homebrew..."
brew_smart_install "gcc@8"
gccVersions=$(get_toolset_value '.gcc.versions | .[]')
echo "Installing GCC@9 using homebrew..."
brew_smart_install "gcc@9"
for gccVersion in $gccVersions; do
brew_smart_install "gcc@${gccVersion}"
done
# https://github.com/actions/virtual-environments/issues/1280
echo "Installing GCC@10 using homebrew..."
brew_smart_install "gcc@10"
rm $(which gfortran)
# Delete default gfortran link if it exists https://github.com/actions/virtual-environments/issues/1280
gfortranPath=$(which gfortran)
if [ $gfortranPath ]; then
rm $gfortranPath
fi
invoke_tests "Common" "GCC"