@@ -107,11 +107,16 @@ jobs:
107107 echo "SDKROOT=$(xcrun --show-sdk-path)" >> $GITHUB_ENV
108108 brew install ninja
109109 brew install libomp
110- brew install netcdf-fortran
110+ brew install libaec
111111 brew install coreutils
112+ brew install netcdf-fortran
112113 else
113114 sudo apt-get update
114- sudo apt-get install ninja-build
115+ sudo apt-get install libaec-dev
116+ sudo apt-get install ninja-build libcurl4-openssl-dev
117+ fi
118+
119+ if [[ "${{ matrix.compiler }}" =~ gnu ]]; then
115120 sudo apt-get install libnetcdff-dev
116121 fi
117122
@@ -180,6 +185,35 @@ jobs:
180185 # Add mpirun to path for testing
181186 [ -z ${MPI_HOME+x} ] || echo "${MPI_HOME}/bin" >> $GITHUB_PATH
182187
188+ - name : Install HDF5
189+ if : contains( matrix.compiler, 'intel' )
190+ run : |
191+ if [[ -f ${{ env.DEPS_DIR }}/hdf5/lib/libhdf5.settings ]]; then
192+ echo "::debug::HDF5 restored from cache"
193+ else
194+ ${ECLAND_TOOLS}/install-hdf5.sh --prefix ${{ env.DEPS_DIR }}/hdf5
195+ fi
196+ echo "HDF5_ROOT=${{ env.DEPS_DIR }}/hdf5" >> $GITHUB_ENV
197+
198+ - name : Install NetCDF C
199+ if : contains( matrix.compiler, 'intel' )
200+ run : |
201+ if [[ -f ${{ env.DEPS_DIR }}/netcdf/bin/nc-config ]]; then
202+ echo "::debug::NetCDF C restored from cache"
203+ else
204+ ${ECLAND_TOOLS}/install-netcdf-c.sh --prefix ${{ env.DEPS_DIR }}/netcdf --hdf5-root ${HDF5_ROOT}
205+ fi
206+ echo "NETCDF_ROOT=${{ env.DEPS_DIR }}/netcdf" >> $GITHUB_ENV
207+
208+ - name : Install NetCDF Fortran
209+ if : contains( matrix.compiler, 'intel' )
210+ run : |
211+ if [[ -f ${NETCDF_ROOT}/bin/nf-config ]]; then
212+ echo "::debug::NetCDF Fortran restored from cache"
213+ else
214+ ${ECLAND_TOOLS}/install-netcdf-fortran.sh --prefix ${{ env.DEPS_DIR }}/netcdf --netcdf-root ${NETCDF_ROOT}
215+ fi
216+
183217 - name : Build & Test
184218 id : build-test
185219 uses : ecmwf-actions/build-package@v2
0 commit comments