From a6a18ad3c1b1aeb73fbb50d409dfdd61c9532550 Mon Sep 17 00:00:00 2001 From: Ahmad El Sayed Date: Thu, 23 May 2024 15:31:14 +0200 Subject: [PATCH] GRIDEDIT-1129: migrate to alma linux 8 (#331) --- .github/workflows/build-and-test-workflow.yml | 6 +++--- libs/MeshKernel/src/Operations.cpp | 2 +- scripts/module_load.sh | 9 +++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-and-test-workflow.yml b/.github/workflows/build-and-test-workflow.yml index 9c1c61813..a1ab51f7e 100644 --- a/.github/workflows/build-and-test-workflow.yml +++ b/.github/workflows/build-and-test-workflow.yml @@ -19,12 +19,12 @@ jobs: name: ${{ inputs.platform }}-${{ inputs.build_type }} - # The default compiler on macos is clang, switch to gcc 11. Specifying the version is necessary. + # The default compiler on macos is clang, switch to gcc. Specifying the version is necessary. # It seems like gcc and g++ are symbolic links to the default clang and clang++ compilers, respectively. # CMAKE_CXX_COMPILER_ID will evaluate to AppleClang rather than GNU on macos. env: - CC: gcc-11 - CXX: g++-11 + CC: gcc-12 + CXX: g++-12 # Build steps steps: diff --git a/libs/MeshKernel/src/Operations.cpp b/libs/MeshKernel/src/Operations.cpp index 115ac9a64..05dabd740 100644 --- a/libs/MeshKernel/src/Operations.cpp +++ b/libs/MeshKernel/src/Operations.cpp @@ -62,7 +62,7 @@ namespace meshkernel } bool inRange = false; - UInt startRange; + UInt startRange = 0; for (auto n = start; n < end; n++) { if (!IsEqual(vec[n].x, separator) && !inRange) diff --git a/scripts/module_load.sh b/scripts/module_load.sh index 5931261d3..2cf5bb3fc 100644 --- a/scripts/module_load.sh +++ b/scripts/module_load.sh @@ -1,7 +1,8 @@ # Script that is meant to be sourced in the CI # It includes the necessary module loads to build MeshKernel on Deltares Linux machines -module load cmake/3.23.1_gcc11.3.0 -module load gcc/11.3.0 -module load boost/1.81.0_gcc11.3.0 -module load netcdf/v4.9.1_gcc11.3.0 +module --verbose load gcc/12.2.0_gcc12.2.0 +module --verbose load cmake/3.26.4_gcc12.2.0 +module --verbose load boost/1.83.0_gcc12.2.0 +module --verbose load netcdf/4.9.2_gcc12.2.0 +module --verbose load curl/8.8.0_gcc12.2.0