From 1594d8116a39be535377480204655dc788a6b39d Mon Sep 17 00:00:00 2001 From: amichelo <andrea.michelotti@lnf.infn.it> Date: Sun, 2 Jul 2023 02:12:37 +0200 Subject: [PATCH] readded ubuntu2204 --- .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fb52b28..85e149f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -310,6 +310,41 @@ ubuntu2004_x86_64: - $BUILD_DISTRIBUTION == "ubuntu2004_x86_64" - $BUILD_DISTRIBUTION == null +ubuntu2204_x86_64: + stage: build + tags: + - shared + image: baltig.infn.it:4567/chaos-lnf-control/chaos_bundle_compilation:2204 + script: + - npm install -g jchaos + - repo sync + - if [ -e CACHE ]; then mv CACHE chaosframework/config;fi + - if [ "$TEST_BRANCH" != "$CI_COMMIT_REF_NAME" ]; then ./chaosframework/tools/chaos_git.sh -c $TEST_BRANCH;fi + - cd chaosframework + - GITHASH=`git log -n 1 --pretty="%h"` + - GITTAG=`git describe --abbrev=0` + - echo -e "GITHASH:$GITHASH\nGITTAG:$GITTAG" >> $INSTALL_DIR/VERSION + - export CHAOS_LIB_HASH=`git log -n 1 --pretty="%h"`;export CHAOS_LAST_TAG=`git describe --abbrev=0`;cd -; + - cd html/chaos_dashboard/;./tag.sh $CI_COMMIT_REF_NAME;cd - + - cd html/chaos_dashboard/js/jchaos;git checkout $CI_COMMIT_REF_NAME;cd - + # -DCMAKE_BUILD_TYPE=Release Debug, Release, RelWithDebInfo and MinSizeRel + - if ! cmake -DKAFKA_RDK_ENABLE=ON -DCHAOS_BOOST_VERSION=64 -DCMAKE_BUILD_TYPE=Release -DCHAOS_EPICS_SUPPORT=ON -DCHAOS_ARCHITECTURE_TEST=ON -DCHAOS_VERSION_MAJOR="$CI_COMMIT_REF_NAME.$CHAOS_LIB_HASH.$REVNAME ($CHAOS_LAST_TAG)" -DCHAOS_VERSION_MINOR="$CI_JOB_STAGE.$CI_COMMIT_SHA" -DCHAOS_WAN=ON -DCHAOS_DRIVER_LUMINOMETER=ON -DOPENCV=$INSTALL_DIR -DIDS=ueye495 -DBASLER=ON -DCAEN2527=ON -DENABLE_MEMCACHE=ON -DCHAOS_BUILD_ID=${CI_PIPELINE_ID} -DCERN_ROOT=$INSTALL_DIR -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR . |& tee $DISTRIB_PREFIX/bundle.configuration.log;then cat /tmp/cmake.log;fi + - if ! make -j 4 install |& tee $INSTALL_DIR/bundle.compilation.log;then tar cfz compilation.tar.gz `find . -name "*.log"` $INSTALL_DIR/bundle.compilation.log;exit 1;fi + - ./tools/strip_symbols.sh $INSTALL_DIR + - tar cfz $DISTRIB_NAME.tar.gz -C /usr/local/chaos chaos-distrib + - md5sum $DISTRIB_NAME.tar.gz > $DISTRIB_NAME.tar.gz.md5 + + artifacts: + name: "$DISTRIB_NAME.tar.gz" + paths: + - ./*.tar.gz + expire_in: 7 day + when: always + only: + variables: + - $BUILD_DISTRIBUTION == "ubuntu2204_x86_64" + - $BUILD_DISTRIBUTION == null + # ubuntu1804_profile_x86_64: # stage: build # tags: -- GitLab