Skip to content

Commit

Permalink
ECLand: Use pre-built netcdf for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 committed Feb 5, 2025
1 parent 71af14f commit 98bea05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ jobs:
brew install libomp
brew install libaec
brew install coreutils
brew install netcdf-fortran
else
sudo apt-get update
sudo apt-get install libaec-dev
Expand Down Expand Up @@ -192,6 +193,7 @@ jobs:
[ -z ${MPI_HOME+x} ] || echo "${MPI_HOME}/bin" >> $GITHUB_PATH

- name: Install HDF5
if: !contains( matrix.os, 'macos' )
run: |
if [[ -f ${{ env.DEPS_DIR }}/hdf5/lib/libhdf5.settings ]]; then
echo "::debug::HDF5 restored from cache"
Expand All @@ -201,6 +203,7 @@ jobs:
echo "HDF5_ROOT=${{ env.DEPS_DIR }}/hdf5" >> $GITHUB_ENV

- name: Install NetCDF C
if: !contains( matrix.os, 'macos' )
run: |
if [[ -f ${{ env.DEPS_DIR }}/netcdf/bin/nc-config ]]; then
echo "::debug::NetCDF C restored from cache"
Expand All @@ -210,6 +213,7 @@ jobs:
echo "NETCDF_ROOT=${{ env.DEPS_DIR }}/netcdf" >> $GITHUB_ENV

- name: Install NetCDF Fortran
if: !contains( matrix.os, 'macos' )
run: |
if [[ -f ${NETCDF_ROOT}/bin/nf-config ]]; then
echo "::debug::NetCDF Fortran restored from cache"
Expand Down

0 comments on commit 98bea05

Please sign in to comment.