From 6fecc4d6de0704c33f6942895d38e6ff563658af Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Tue, 5 Sep 2023 11:21:18 +0200 Subject: [PATCH] CI: use same lcg stacks as podio (#223) * CI: use same lcg stacks as podio * Tests: use same catch2 3.4.0 as podio --- .github/workflows/lcg_linux_with_podio.yml | 20 +++++++++++++------- test/utils/CMakeLists.txt | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lcg_linux_with_podio.yml b/.github/workflows/lcg_linux_with_podio.yml index 6343336e8..d01a41684 100644 --- a/.github/workflows/lcg_linux_with_podio.yml +++ b/.github/workflows/lcg_linux_with_podio.yml @@ -8,10 +8,16 @@ jobs: strategy: fail-fast: false matrix: - LCG: ["LCG_99/x86_64-centos7-gcc10-opt", - "dev3/x86_64-centos7-clang12-opt", - "dev4/x86_64-centos7-gcc11-opt", - "dev4/x86_64-centos7-clang12-opt"] + LCG: ["dev3/x86_64-el9-clang16-opt", + "dev4/x86_64-el9-clang16-opt"] + CXX_STANDARD: [20] + include: + - LCG: "dev4/x86_64-centos7-gcc11-opt" + CXX_STANDARD: 17 + - LCG: "LCG_102/x86_64-centos7-clang12-opt" + CXX_STANDARD: 17 + - LCG: "LCG_102/x86_64-centos8-gcc11-opt" + CXX_STANDARD: 17 steps: - uses: actions/checkout@v3 - uses: cvmfs-contrib/github-action-cvmfs@v3 @@ -26,7 +32,7 @@ jobs: cd podio mkdir build install cd build - cmake .. -DCMAKE_CXX_STANDARD=17 \ + cmake .. -DCMAKE_CXX_STANDARD=${{ matrix.CXX_STANDARD }} \ -DENABLE_SIO=ON \ -DBUILD_TESTING=OFF \ -DCMAKE_INSTALL_PREFIX=$(pwd)/../install \ @@ -44,7 +50,7 @@ jobs: echo "Building edm4hep" mkdir build install cd build - cmake .. -DCMAKE_CXX_STANDARD=17 \ + cmake .. -DCMAKE_CXX_STANDARD=${{ matrix.CXX_STANDARD }} \ -DCMAKE_INSTALL_PREFIX=../install \ -DUSE_EXTERNAL_CATCH2=OFF \ -G Ninja @@ -58,7 +64,7 @@ jobs: cd test/downstream-project-cmake-test mkdir build cd build - cmake .. -DCMAKE_CXX_STANDARD=17 \ + cmake .. -DCMAKE_CXX_STANDARD=${{ matrix.CXX_STANDARD }} \ -DCMAKE_INSTALL_PREFIX=../install \ -G Ninja ninja -k0 diff --git a/test/utils/CMakeLists.txt b/test/utils/CMakeLists.txt index e6190b5ae..d92b2c81f 100644 --- a/test/utils/CMakeLists.txt +++ b/test/utils/CMakeLists.txt @@ -7,7 +7,7 @@ else() FetchContent_Declare( Catch2 GIT_REPOSITORY https://github.com/catchorg/Catch2.git - GIT_TAG 6f21a3609cea360846a0ca93be55877cca14c86d + GIT_TAG v3.4.0 ) FetchContent_MakeAvailable(Catch2) set(CMAKE_MODULE_PATH ${Catch2_SOURCE_DIR}/extras ${CMAKE_MODULE_PATH})