eCLM Documentation #101
Workflow file for this run
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: eCLM CI Test | |
# Controls when the action will run. | |
on: [push, pull_request] | |
jobs: | |
eclm_build_job: | |
runs-on: ubuntu-22.04 | |
env: | |
CC: mpicc | |
FC: mpifort | |
BUILD_DIR: bld | |
INSTALL_DIR: install | |
CMAKE_BUILD_PARALLEL_LEVEL: 4 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: libxml2-utils pylint wget cmake netcdf-bin libnetcdf-dev libnetcdff-dev libpnetcdf-dev | |
version: 1.0 | |
execute_install_scripts: true | |
- name: Download MPI Fortran compiler | |
run: sudo apt-get install gfortran openmpi-bin libopenmpi-dev | |
- name: Configure eCLM | |
run: | | |
cmake -S src -B $BUILD_DIR \ | |
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \ | |
-DCMAKE_C_COMPILER=$CC \ | |
-DCMAKE_Fortran_COMPILER=$FC | |
- name: Build eCLM | |
run: cmake --build $BUILD_DIR | |
- name: Install eCLM | |
run: cmake --install $BUILD_DIR | |
- name: Install eCLM namelist generator | |
run: pip3 install --user ./namelist_generator |