Update CTM to be in line with GEOSgcm 10.19.5 #51
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: Build Tests | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
# Do not run if the only files changed cannot affect the build | |
paths-ignore: | |
- "**.md" | |
- "**.json" | |
- "parallel_build.csh" | |
- ".github/CODEOWNERS" | |
- ".codebuild/**" | |
- ".circleci/**" | |
jobs: | |
build_ctm: | |
name: Build GEOSctm | |
if: "!contains(github.event.pull_request.labels.*.name, '0 diff trivial')" | |
runs-on: ubuntu-latest | |
container: | |
image: gmao/ubuntu20-geos-env-mkl:v6.2.8-openmpi_4.0.6-gcc_11.2.0 | |
credentials: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
env: | |
OMPI_ALLOW_RUN_AS_ROOT: 1 | |
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 | |
OMPI_MCA_btl_vader_single_copy_mechanism: none | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.5.0 | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout CTM | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Versions etc. | |
run: | | |
gfortran --version | |
mpirun --version | |
echo $BASEDIR | |
- name: Mepo clone external repos | |
run: | | |
mepo clone | |
mepo status | |
- name: Update other branches | |
if: | |
"!contains('refs/heads/main,refs/heads/develop', github.ref)" | |
run: | | |
mepo checkout-if-exists ${GITHUB_HEAD_REF} | |
mepo status | |
- name: CMake | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DBASEDIR=$BASEDIR/Linux -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_BUILD_TYPE=Debug -DMPIEXEC_PREFLAGS='--oversubscribe' -DUSE_F2PY=OFF | |
- name: Build | |
run: | | |
cd build | |
make -j4 install |