-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #364 from GEOS-ESM/develop
Sync develop into main
- Loading branch information
Showing
10 changed files
with
604 additions
and
677 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Build Tests | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, labeled, unlabeled] | ||
|
||
jobs: | ||
build_gcm: | ||
name: Build GEOSgcm | ||
if: "!contains(github.event.pull_request.labels.*.name, '0 diff trivial')" | ||
runs-on: ubuntu-latest | ||
container: gmao/ubuntu20-geos-env-mkl:6.0.16-openmpi_4.0.5-gcc_10.2.0 | ||
env: | ||
LANGUAGE: en_US.UTF-8 | ||
LC_ALL: en_US.UTF-8 | ||
LANG: en_US.UTF-8 | ||
LC_TYPE: en_US.UTF-8 | ||
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 GCM | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: GEOS-ESM/GEOSgcm | ||
fetch-depth: 1 | ||
- name: Versions etc. | ||
run: | | ||
gfortran --version | ||
mpirun --version | ||
echo $BASEDIR | ||
echo ${GITHUB_HEAD_REF} | ||
- name: Mepo clone external repos | ||
run: | | ||
mepo clone | ||
mepo status | ||
mepo develop GEOSgcm_GridComp GEOSgcm_App | ||
mepo status | ||
- name: Update GEOSgcm_GridComp branch | ||
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' | ||
- name: Build | ||
run: | | ||
cd build | ||
make -j4 install |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Oops, something went wrong.