diff --git a/CI/setup_cvmfs_lcg105.sh b/CI/setup_cvmfs_lcg105.sh new file mode 100644 index 00000000000..c45bba4493e --- /dev/null +++ b/CI/setup_cvmfs_lcg105.sh @@ -0,0 +1,23 @@ +# setup appropriate LCG release via cvmfs + +if test -e /etc/centos-release && grep 'CentOS Linux release 7' /etc/centos-release; then + lcg_os=centos7 +elif test -e /etc/centos-release && grep 'CentOS Stream release 8' /etc/centos-release; then + lcg_os=centos8 +# not centos. Check for RHEL +elif test -e /etc/redhat-release && grep 'Linux release 9' /etc/redhat-release; then + lcg_os=el9 +else + echo "Unsupported system" 1>&2 + return +fi + +lcg_release=LCG_105 +lcg_compiler=gcc11-opt +lcg_platform=x86_64-${lcg_os}-${lcg_compiler} +lcg_view=/cvmfs/sft.cern.ch/lcg/views/${lcg_release}/${lcg_platform} + +source ${lcg_view}/setup.sh +# extra variables required to build acts +export DD4hep_DIR=${lcg_view} +