CI: Build on Ubuntu 18.04, use newer clang-format. (#139)

This commit is contained in:
WarmUpTill
2021-03-13 17:02:04 +01:00
committed by GitHub
parent 7526cbe1a3
commit 177ca4aea2
3 changed files with 6 additions and 15 deletions

View File

@@ -19,7 +19,9 @@ if [[ $OS = "Linux" || $OS = "Darwin" ]] ; then
fi
# Discover clang-format
if type clang-format-8 2> /dev/null ; then
if type clang-format-10 2> /dev/null ; then
CLANG_FORMAT=clang-format-10
elif type clang-format-8 2> /dev/null ; then
CLANG_FORMAT=clang-format-8
else
CLANG_FORMAT=clang-format