Skip to content

Commit

Permalink
Try pre-built ESMF
Browse files Browse the repository at this point in the history
  • Loading branch information
zmoon committed May 7, 2024
1 parent b147183 commit 18204b8
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,36 @@ jobs:

- name: Build
run: cmake --build build

build-with-apt-packages-nompi-archive:
name: Build (APT, no MPI, pre-built ESMF)
runs-on: ubuntu-22.04
steps:
- name: Check out
uses: actions/checkout@v4
with:
submodules: true

- name: Install dependencies
run: sudo apt-get install -y libnetcdf-dev libnetcdff-dev
liblapack-dev libopenblas-dev

- name: Fetch pre-built ESMF
run: |
v="8.3.1" # ESMF
gcc="12"
esmf_base=$HOME/esmf
export ESMF_DIR=${esmf_base}/${v}-gcc-${gcc}
mkdir -p $ESMF_DIR
cd $esmf_base
wget https://github.com/zmoon/gha-esmf/releases/download/v0.0.4/${v}-gcc-${gcc}-mpiuni.tar.gz
tar xzvf ${v}-gcc-${gcc}-mpiuni.tar.gz --directory=/tmp && mv /tmp/${v}-gcc-${gcc}-mpiuni/* $ESMF_DIR
echo "ESMFMKFILE=${ESMF_DIR}/lib/libO/Linux.gfortran.64.mpiuni.default/esmf.mk" >> "$GITHUB_ENV"
- name: Configure
run: FC=gfortran-12 cmake -S . -B build

- name: Build
run: cmake --build build

0 comments on commit 18204b8

Please sign in to comment.