Skip to content

Commit

Permalink
extended 10
Browse files Browse the repository at this point in the history
  • Loading branch information
mjreno authored and mjreno committed Nov 17, 2023
1 parent 35a0630 commit 0b22651
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/ci-nc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,20 +158,13 @@ jobs:
cache-downloads: true

- name: Edit netcdf-fortran.pc
if: runner.os == 'Linux'
working-directory: modflow6
run: |
sed -i "s|libdir=/home/runner/micromamba/envs/modflow6//home/runner/micromamba/envs/modflow6/lib|libdir=/home/runner/micromamba/envs/modflow6/lib|g" /home/runner/micromamba/envs/modflow6/lib/pkgconfig/netcdf-fortran.pc
/home/runner/micromamba/envs/modflow6/bin/pkg-config --cflags netcdf-fortran
/home/runner/micromamba/envs/modflow6/bin/pkg-config --libs netcdf-fortran
- name: Edit netcdf-fortran.pc
if: runner.os == 'macOS'
working-directory: modflow6
run: |
sed -i '' -e "s|libdir=/Users/runner/micromamba/envs/modflow6//Users/runner/micromamba/envs/modflow6/lib|libdir=/Users/runner/micromamba/envs/modflow6/lib|g" /Users/runner/micromamba/envs/modflow6/lib/pkgconfig/netcdf-fortran.pc
/Users/runner/micromamba/envs/modflow6/bin/pkg-config --cflags netcdf-fortran
/Users/runner/micromamba/envs/modflow6/bin/pkg-config --libs netcdf-fortran
if [ "$RUNNER_OS" == "Linux" ]; then
sed -i "s|libdir=/home/runner/micromamba/envs/modflow6//home/runner/micromamba/envs/modflow6/lib|libdir=/home/runner/micromamba/envs/modflow6/lib|g" /home/runner/micromamba/envs/modflow6/lib/pkgconfig/netcdf-fortran.pc
elif [ "$RUNNER_OS" == "macOS" ]; then
sed -i '' -e "s|libdir=/Users/runner/micromamba/envs/modflow6//Users/runner/micromamba/envs/modflow6/lib|libdir=/Users/runner/micromamba/envs/modflow6/lib|g" /Users/runner/micromamba/envs/modflow6/lib/pkgconfig/netcdf-fortran.pc
fi
- name: Build modflow6
working-directory: modflow6
Expand Down

0 comments on commit 0b22651

Please sign in to comment.