From 251dcb63200fd5b8d5d178f3afd784450fc22771 Mon Sep 17 00:00:00 2001 From: mjreno Date: Thu, 20 Jul 2023 08:06:48 -0400 Subject: [PATCH] test build netcdf-fortran 1 --- .github/workflows/ci.yml | 46 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb5bb1488d9..ab7d07a488c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -476,14 +476,58 @@ jobs: wget https://github.com/Unidata/netcdf-c/archive/refs/tags/v4.9.2.zip mkdir netcdf-c unzip v4.9.2.zip -d netcdf-c + wget https://github.com/Unidata/netcdf-fortran/archive/refs/tags/v4.6.1.zip + mkdir netcdf-fortran + unzip v4.6.1.zip -d netcdf-fortran - - name: Make netcdf-c + - name: Install netcdf-c if: runner.os == 'Windows' shell: msys2 {0} working-directory: netcdf-c/netcdf-c-4.9.2 run: | ./configure --enable-static --disable-shared --disable-dap --disable-examples --disable-v2 --disable-utilities --disable-testsets --disable-libxml2 make install + nc-config --all + + - name: Install netcdf-fortran + if: runner.os == 'Windows' + shell: msys2 {0} + working-directory: netcdf-c/netcdf-fortran-4.6.1 + run: | + LIBS="$(nc-config --libs)" ./configure --enable-static --disable-shared + make install + nf-config --all + + - name: Setup Micromamba + uses: mamba-org/setup-micromamba@v1 + with: + environment-file: modflow6/environment.yml + init-shell: >- + bash + powershell + cache-environment: true + cache-downloads: true + + - name: Build modflow6 + working-directory: modflow6 + run: | + meson setup builddir --prefix=$(pwd) --libdir=bin + meson install -C builddir + + - name: Show Meson logs + if: failure() + working-directory: modflow6 + run: cat builddir/meson-logs/meson-log.txt + + - name: Update flopy + working-directory: modflow6/autotest + run: python update_flopy.py + + - name: Get executables + working-directory: modflow6/autotest + env: + GITHUB_TOKEN: ${{ github.token }} + run: pytest -v --durations 0 get_exes.py parallel_test: name: Parallel testing