Use only one compiler per build (#8)

This commit is contained in:
Daniil Kovalev 2021-08-22 17:12:44 +03:00 committed by GitHub
parent 78814311cb
commit 0fddfe8058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,39 +131,51 @@ jobs:
case ${{ matrix.pattern }} in case ${{ matrix.pattern }} in
0) 0)
export CXX="clang++-10"
export MSGPACK_CXX_VERSION="MSGPACK_CXX11=OFF" export MSGPACK_CXX_VERSION="MSGPACK_CXX11=OFF"
;; ;;
1) 1)
export CXX="g++-10"
export MSGPACK_CXX_VERSION="MSGPACK_CXX11=ON" export MSGPACK_CXX_VERSION="MSGPACK_CXX11=ON"
;; ;;
2) 2)
export CXX="clang++-10"
export MSGPACK_CXX_VERSION="MSGPACK_CXX14=ON" export MSGPACK_CXX_VERSION="MSGPACK_CXX14=ON"
;; ;;
3) 3)
export CXX="g++-10"
export MSGPACK_CXX_VERSION="MSGPACK_CXX17=ON" export MSGPACK_CXX_VERSION="MSGPACK_CXX17=ON"
;; ;;
4) 4)
export CXX="clang++-10"
export MSGPACK_CXX_VERSION="MSGPACK_CXX20=ON" export MSGPACK_CXX_VERSION="MSGPACK_CXX20=ON"
;; ;;
5) 5)
export CXX="g++-10"
export ARCH=32 export ARCH=32
;; ;;
6) 6)
export CXX="clang++-10"
export API_VERSION=2 export API_VERSION=2
;; ;;
7) 7)
export CXX="g++-10"
export API_VERSION=1 export API_VERSION=1
;; ;;
8) 8)
export CXX="clang++-10"
export CHAR_SIGN="unsigned" export CHAR_SIGN="unsigned"
;; ;;
9) 9)
export CXX="g++-10"
export X3_PARSE="ON" export X3_PARSE="ON"
;; ;;
10) 10)
export CXX="clang++-10"
export ACTION="ci/build_regression.sh" export ACTION="ci/build_regression.sh"
;; ;;
11) 11)
export CXX="g++-10"
export ARCH=32 export ARCH=32
export CHAR_SIGN="unsigned" export CHAR_SIGN="unsigned"
export X3_PARSE="ON" export X3_PARSE="ON"
@ -171,17 +183,7 @@ jobs:
esac esac
# build and test # build and test
# g++
export CXX="g++-10"
CMAKE_CXX_COMPILER="$CXX" CXXFLAGS="-Werror -g ${SANITIZE}" ci/build_cmake.sh || exit 1 CMAKE_CXX_COMPILER="$CXX" CXXFLAGS="-Werror -g ${SANITIZE}" ci/build_cmake.sh || exit 1
# clang++
# with ubsan clang inserts undefined reference to `__mulodi4' on 32-bit build - skip this configuration
if ! [[ $SANITIZE != "" && $ARCH -eq 32 ]]; then
export CXX="clang++-10"
CMAKE_CXX_COMPILER="$CXX" CXXFLAGS="-Werror -g ${SANITIZE}" ci/build_cmake.sh || exit 1
fi
cat Files.cmake| grep ".*\.[h|hpp]" | perl -pe 's/ //g' | sort > tmp1 && find include -name "*.h" -o -name "*.hpp" | sort > tmp2 && diff tmp1 tmp2 cat Files.cmake| grep ".*\.[h|hpp]" | perl -pe 's/ //g' | sort > tmp1 && find include -name "*.h" -o -name "*.hpp" | sort > tmp2 && diff tmp1 tmp2
windows: windows: