Merge pull request #64 from noaa-oar-arl/zmoon-patch-1 #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build (APT, no MPI, pre-built ESMF) | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: sudo apt-get update && 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 | |
esmf=${v}-gcc-${gcc}-mpiuni | |
export ESMF_DIR=${esmf_base}/${esmf} | |
mkdir -p $ESMF_DIR | |
cd $ESMF_DIR | |
wget https://github.com/zmoon/gha-esmf/releases/download/v0.0.5/${esmf}.tar.gz | |
tar xzvf ${esmf}.tar.gz | |
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 |