[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
@@ -60,7 +60,9 @@ if ($os.IsLessThanBigSur) {
)
}
$markdown += New-MDList -Style Unordered -Lines ($languageAndRuntimeList | Sort-Object)
# To sort GCC and Gfortran correctly, we need to use natural sort https://gist.github.com/markwragg/e2a9dc05f3464103d6998298fb575d4e#file-sort-natural-ps1
$toNatural = { [regex]::Replace($_, '\d+', { $args[0].Value.PadLeft(20) }) }
$markdown += New-MDList -Style Unordered -Lines ($languageAndRuntimeList | Sort-Object $toNatural)
# Package Management
$markdown += New-MDHeader "Package Management" -Level 3