Skip to content

Commit

Permalink
test build netcdf-fortran 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mjreno authored and mjreno committed Jul 20, 2023
1 parent 68c698d commit 251dcb6
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 251dcb6

Please sign in to comment.