mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user