diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51228d32..91d06a82 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,6 +47,7 @@ jobs: compiler_cxx: g++-10 compiler_fc: gfortran-10 caching: true + cmake_options: "-DECBUILD_Fortran_FLAGS=-fcray-pointer" - name: linux clang-12 os: ubuntu-20.04 @@ -55,6 +56,7 @@ jobs: compiler_cxx: clang++-12 compiler_fc: gfortran-10 caching: true + cmake_options: "-DECBUILD_Fortran_FLAGS=-fcray-pointer" - name: linux clang-12 build_type: Release @@ -64,6 +66,7 @@ jobs: compiler_cxx: clang++-12 compiler_fc: gfortran-10 caching: true + cmake_options: "-DECBUILD_Fortran_FLAGS=-fcray-pointer" # Disable due to problematic environment # - name: linux nvhpc-21.9 @@ -91,6 +94,7 @@ jobs: compiler_cxx: ~ compiler_fc: gfortran-11 caching: true + cmake_options: "-DECBUILD_Fortran_FLAGS=-fcray-pointer -DPython3_EXECUTABLE=$(which python3)" runs-on: ${{ matrix.os }} steps: @@ -115,6 +119,11 @@ jobs: brew install libomp brew install libaec brew install coreutils + brew install pyenv + + pyenv install 3.11.4 + pyenv global 3.11.4 + echo "PATH=\"~/.pyenv/shims:$PATH\"" >> $GITHUB_PATH else sudo apt-get update sudo apt-get install libaec-dev @@ -176,18 +185,19 @@ jobs: self_coverage: false force_build: true cache_suffix: "${{ matrix.build_type }}-${{ env.CACHE_SUFFIX }}" - recreate_cache: ${{ matrix.caching == false }} + recreate_cache: true dependencies: | ecmwf/ecbuild ecmwf/eccodes ecmwf-ifs/fiat ecmwf-ifs/field_api@refs/tags/v0.2.2 - ecmwf-ifs/loki@refs/tags/v0.2.2 + ecmwf-ifs/loki@nabr-setuptools-scm-without-git dependency_branch: develop dependency_cmake_options: | ecmwf-ifs/fiat: "-G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTS=OFF" ecmwf/eccodes: "-G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_MEMFS=ON -DENABLE_JPG=OFF" - ecmwf-ifs/field_api: "-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTS=OFF -DENABLE_ACC=OFF -DENABLE_SINGLE_PRECISION=OFF" + ecmwf-ifs/field_api: "-G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTS=OFF -DENABLE_ACC=OFF -DENABLE_SINGLE_PRECISION=OFF" + ecmwf-ifs/loki: "-G Ninja -DENABLE_TESTS=OFF -DENABLE_EDITABLE=ON" cmake_options: "-G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ${{ matrix.cmake_options }} -DENABLE_MPI=ON -DENABLE_LOKI=ON -DLOKI_MODE=idem-stack" ctest_options: "${{ matrix.ctest_options }}"