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 1753c1b commit 3ff7031
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 @@ -121,6 +121,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 @@ -193,6 +194,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 @@ -202,6 +204,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 @@ -211,6 +214,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 3ff7031

Please sign in to comment.