Skip to content

Commit

Permalink
GRIDEDIT-1129: migrate to alma linux 8 (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-el-sayed authored May 23, 2024
1 parent 46527aa commit a6a18ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion libs/MeshKernel/src/Operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 5 additions & 4 deletions scripts/module_load.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a6a18ad

Please sign in to comment.