Skip to content

Commit

Permalink
extended 13
Browse files Browse the repository at this point in the history
  • Loading branch information
mjreno authored and mjreno committed Nov 17, 2023
1 parent b7b004b commit 8b904e8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci-nc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,13 @@ jobs:
- name: Edit netcdf-fortran.pc
working-directory: modflow6
run: |
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
if [ "$RUNNER_OS" == "Linux" ]; then
echo "PKG_CONFIG_PATH=/home/runner/micromamba/envs/modflow6/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
# 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
echo "PKG_CONFIG_PATH=/Users/runner/micromamba/envs/modflow6/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
# 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 8b904e8

Please sign in to comment.