Skip to content

Commit

Permalink
nc12
Browse files Browse the repository at this point in the history
  • Loading branch information
mjreno authored and mjreno committed Sep 10, 2023
1 parent 53121ce commit 55d8e5f
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -451,29 +452,30 @@ 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 }}
# if: steps.cache-hdf5.outputs.cache-hit != 'true'
# 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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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() }}
Expand Down

0 comments on commit 55d8e5f

Please sign in to comment.