From 55d8e5ff7c8d32a7521677d594fdaf90eefec363 Mon Sep 17 00:00:00 2001 From: mjreno Date: Sun, 10 Sep 2023 12:45:27 -0400 Subject: [PATCH] nc12 --- .github/workflows/ci.yml | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c9a6db486e..d95cb489ca7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -326,6 +326,7 @@ jobs: - name: Build modflow6 working-directory: modflow6 run: | + nc-config --all meson setup builddir -Ddebug=false --prefix=$(pwd) --libdir=bin meson install -C builddir @@ -451,16 +452,16 @@ jobs: shell: msys2 {0} run: | #pacman -Sy --noconfirm mingw-w64-x86_64-hdf5 - pacman -Sy --noconfirm mingw-w64-x86_64-netcdf +# pacman -Sy --noconfirm mingw-w64-x86_64-netcdf # #pushd $HOME -# cd $HOME -# wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-$(echo ${{ matrix.hdf5 }} | cut -d. -f 1,2)/hdf5-${{ matrix.hdf5 }}/src/hdf5-${{ matrix.hdf5 }}.tar.bz2 -# tar -jxf hdf5-${{ matrix.hdf5 }}.tar.bz2 + cd $HOME + wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-$(echo ${{ matrix.hdf5 }} | cut -d. -f 1,2)/hdf5-${{ matrix.hdf5 }}/src/hdf5-${{ matrix.hdf5 }}.tar.bz2 + tar -jxf hdf5-${{ matrix.hdf5 }}.tar.bz2 # #pushd hdf5-${{ matrix.hdf5 }} -# cd hdf5-${{ matrix.hdf5 }} -# ./configure --disable-static --enable-shared --prefix=${HOME}/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }} --enable-hl --with-szlib -# make -j -# make install -j + cd hdf5-${{ matrix.hdf5 }} + ./configure --disable-static --enable-shared --prefix=${HOME}/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }} --enable-hl --with-szlib + make -j + make install -j # #popd # - name: Make libhdf5-${{ matrix.hdf5 }}-${{ matrix.netcdf }} @@ -468,12 +469,13 @@ jobs: # shell: msys2 {0} # run: | # if [[ ${{ matrix.netcdf }} != "main" ]]; then -# git clone -b ${{ matrix.netcdf}} https://github.com/Unidata/netcdf-c +# cd $HOME +# git clone -b ${{ matrix.netcdf}} https://github.com/Unidata/netcdf-c # #pushd netcdf-c -# cd netcdf-c -# autoreconf -if -# CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ./configure --disable-static --enable-shared --prefix=${HOME}/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }} -# make -j install +# cd netcdf-c +# autoreconf -if +# CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ./configure --disable-static --enable-shared --prefix=${HOME}/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }} +# make -j install # #popd # fi # #popd @@ -529,6 +531,7 @@ jobs: #cd build #LD_LIBRARY_PATH=${LD_LIBRARY_PATH} cmake $(pwd)/../ -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} #- name: "Create build directory and run CMake" + cd $HOME pwd #find . | grep -i CMakeLists.txt git clone -b ${{ matrix.netcdf}} https://github.com/Unidata/netcdf-c @@ -565,6 +568,7 @@ jobs: shell: msys2 {0} #shell: bash -l {0} run: | + cd $HOME cd build LD_LIBRARY_PATH=${LD_LIBRARY_PATH} make -j 12 if: ${{ success() }}