feat(CI): update clang-7 to clang-9, add clang-10 build (#3107)

This commit is contained in:
Francesco Borzì
2020-06-03 18:41:02 +02:00
committed by GitHub
parent 3d9d51977d
commit c208a1219b
2 changed files with 13 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
compiler: [clang6, clang7] compiler: [clang6, clang9, clang10]
modules: [with, without] modules: [with, without]
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
name: ${{ matrix.compiler }}-${{ matrix.modules }}-modules name: ${{ matrix.compiler }}-${{ matrix.modules }}-modules

View File

@@ -30,10 +30,18 @@ case $COMPILER in
echo "CCOMPILERCXX=\"clang++-6.0\"" >> ./conf/config.sh echo "CCOMPILERCXX=\"clang++-6.0\"" >> ./conf/config.sh
;; ;;
"clang7" ) "clang9" )
time sudo apt-get install -y clang-7 time sudo apt-get install -y clang-9
echo "CCOMPILERC=\"clang-7\"" >> ./conf/config.sh echo "CCOMPILERC=\"clang-9\"" >> ./conf/config.sh
echo "CCOMPILERCXX=\"clang++-7\"" >> ./conf/config.sh echo "CCOMPILERCXX=\"clang++-9\"" >> ./conf/config.sh
;;
"clang10" )
time sudo apt-get install -y clang-10
echo "CCOMPILERC=\"clang-10\"" >> ./conf/config.sh
echo "CCOMPILERCXX=\"clang++-10\"" >> ./conf/config.sh
# disable -Werror for clang-10 TODO: remove when this is fixed https://github.com/azerothcore/azerothcore-wotlk/issues/3108
echo "CCUSTOMOPTIONS='-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache'" >> ./conf/config.sh
;; ;;
* ) * )