Commit e8462f43 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Update CI to LCG_101 with Clang12, GCC11 and Geant4 10.7.2

parent 37938d9d
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -15,8 +15,10 @@ if [ "$(uname)" = "Linux" ]; then
elif [ "$(uname)" = "Darwin" ]; then
    MACOS_MAJOR=$(sw_vers -productVersion | awk -F '.' '{print $1}')
    MACOS_MINOR=$(sw_vers -productVersion | awk -F '.' '{print $2}')
    if [ $MACOS_MAJOR = "11" ] || [ "${MACOS_MAJOR}.${MACOS_MINOR}" = "10.15" ]; then
    if [ $MACOS_MAJOR = "11" ]; then
        OS=mac1015
    elif [ "${MACOS_MAJOR}.${MACOS_MINOR}" = "10.15" ]; then
        OS=mac11
    else
        echo "Unsupported version of macOS ${MACOS_MAJOR}.${MACOS_MINOR}"
        exit 1
@@ -48,7 +50,7 @@ fi


# Determine which LCG version to use
DEFAULT_LCG="LCG_100"
DEFAULT_LCG="LCG_101"

if [ -z ${ALLPIX_LCG_VERSION} ]; then
    echo "No explicit LCG version set, using ${DEFAULT_LCG}."
@@ -66,14 +68,14 @@ if [ -z ${COMPILER_TYPE} ]; then
    fi
fi
if [ ${COMPILER_TYPE} = "gcc" ]; then
    COMPILER_VERSION="gcc10"
    COMPILER_VERSION="gcc11"
    echo "Compiler type set to GCC, version ${COMPILER_VERSION}."
fi
if [ ${COMPILER_TYPE} = "llvm" ]; then
    if [ "$(uname)" = "Darwin" ]; then
        COMPILER_VERSION="clang120"
    else
        COMPILER_VERSION="clang11"
        COMPILER_VERSION="clang12"
    fi
    echo "Compiler type set to LLVM, version ${COMPILER_VERSION}."
fi
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ on:
  pull_request:
    types: [opened, reopened, edited, ready_for_review, synchronize]
env:
  LCG_VERSION: LCG_100
  LCG_VERSION: LCG_101
jobs:
  compile-centos7:
    strategy:
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ on:
  pull_request:
    types: [opened, reopened, edited, ready_for_review, synchronize]
env:
  LCG_VERSION: LCG_99
  LCG_VERSION: LCG_101
jobs:

  format:
+2 −2
Original line number Diff line number Diff line
@@ -274,9 +274,9 @@ ADD_RUNTIME_DEP(thisroot.sh)
###################################

# Set the clang-format version required by the CI for correct formatting:
SET(CLANG_FORMAT_VERSION "11")
SET(CLANG_FORMAT_VERSION "12")
# Set the clang-tidy version of the linter required by the CI:
SET(CLANG_TIDY_VERSION "11")
SET(CLANG_TIDY_VERSION "12")

# Set the source files to clang-format (FIXME: determine this better)
FILE(