mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
exclude Ubuntu16
This commit is contained in:
@@ -4,6 +4,11 @@
|
|||||||
## Desc: Installs GNU C++
|
## Desc: Installs GNU C++
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Source the helpers for use with the script
|
||||||
|
source $HELPER_SCRIPTS/os.sh
|
||||||
|
|
||||||
function InstallGcc {
|
function InstallGcc {
|
||||||
version=$1
|
version=$1
|
||||||
|
|
||||||
@@ -26,10 +31,12 @@ versions=(
|
|||||||
"g++-7"
|
"g++-7"
|
||||||
"g++-8"
|
"g++-8"
|
||||||
"g++-9"
|
"g++-9"
|
||||||
"g++-10"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
for version in ${versions[*]}
|
if ! isUbuntu16; then
|
||||||
do
|
versions+=("g++-10")
|
||||||
|
fi
|
||||||
|
|
||||||
|
for version in ${versions[*]}; do
|
||||||
InstallGcc $version
|
InstallGcc $version
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user