|
| 1 | +name: CI |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - '**' |
| 6 | +jobs: |
| 7 | + container-test-job: |
| 8 | + runs-on: ubuntu-latest |
| 9 | + container: |
| 10 | + image: rfiorella/e3sm-dev:latest |
| 11 | + steps: |
| 12 | + - name: Check out the NGEE-Arctic-E3SM repo |
| 13 | + uses: actions/checkout@v4 |
| 14 | + with: |
| 15 | + ref: ${{ github.ref }} |
| 16 | + submodules: true |
| 17 | + - name: Setup cime and input datafiles |
| 18 | + run: | |
| 19 | + mkdir ~/.cime |
| 20 | + cp /home/e3smuser/.cime/* /github/home/.cime/ |
| 21 | + git clone https://github.com/rfiorella/pt-e3sm-inputdata /home/e3smuser/inputdata |
| 22 | + cd /home/e3smuser/inputdata/lnd/clm2/firedata |
| 23 | + tar -zxvf clmforc.Li_2012_hdm_0.5x0.5_AVHRR_simyr1850-2010_c130401.nc.tar.gz |
| 24 | + cd /home/e3smuser/inputdata/atm/datm7/NASA_LIS/ |
| 25 | + tar -zxvf clmforc.Li_2012_climo1995-2011.T62.lnfm_c130327.nc.tar.gz |
| 26 | + tar -zxvf clmforc.Li_2012_climo1995-2011.T62.lnfm_Total_c140423.nc.tar.gz |
| 27 | + ls -v /home/e3smuser/inputdata/atm/datm7/NASA_LIS/ |
| 28 | + - name: create new case and setup |
| 29 | + run: | |
| 30 | + cd cime/scripts && ./create_newcase --mach docker --res ELM_USRDAT --compset ICB1850CNPRDCTCBC --case ~/output/ci_test \ |
| 31 | + && cd ~/output/ci_test |
| 32 | + ./xmlchange MOSART_MODE=NULL,DOUT_S=FALSE,DIN_LOC_ROOT=/home/e3smuser/inputdata |
| 33 | + ./xmlchange DIN_LOC_ROOT_CLMFORC=/home/e3smuser/inputdata/atm/datm7 |
| 34 | + ./xmlchange ELM_USRDAT_NAME=1x1pt_AK-TLG |
| 35 | + ./xmlchange ATM_DOMAIN_PATH=/home/e3smuser/inputdata/share/domains/domain.clm |
| 36 | + ./xmlchange LND_DOMAIN_PATH=/home/e3smuser/inputdata/share/domains/domain.clm |
| 37 | + ./xmlchange ATM_DOMAIN_FILE=domain.lnd.1x1pt_teller-GRID_navy.nc |
| 38 | + ./xmlchange LND_DOMAIN_FILE=domain.lnd.1x1pt_teller-GRID_navy.nc |
| 39 | + ./xmlchange PIO_TYPENAME=netcdf,NTASKS=1,NTHRDS=1 |
| 40 | + ./xmlchange STOP_OPTION=nyears,STOP_N=5 |
| 41 | + ./xmlchange BATCH_SYSTEM=none |
| 42 | + echo "&clm_inparm" >> user_nl_elm |
| 43 | + echo " do_budgets = .false." >> user_nl_elm |
| 44 | + echo " use_nofire = .true." >> user_nl_elm |
| 45 | + echo " metdata_type = 'gswp3'" >> user_nl_elm |
| 46 | + echo " metdata_bypass = '/home/e3smuser/inputdata/atm/datm7/atm_forcing.datm7.GSWP3.0.5d.v2.c180716_NGEE-Grid/cpl_bypass_teller-Grid'" >> user_nl_elm |
| 47 | + echo " fsurdat = '/home/e3smuser/inputdata/lnd/clm2/surfdata_map/surfdata_1x1pt_teller-GRID_simyr1850_c360x720_c171002.nc'" >> user_nl_elm |
| 48 | + echo " stream_fldfilename_popdens = '/home/e3smuser/inputdata/lnd/clm2/firedata/clmforc.Li_2012_hdm_0.5x0.5_AVHRR_simyr1850-2010_c130401.nc'" >> user_nl_elm |
| 49 | + ./case.setup |
| 50 | + # add coupler bypass flag to cmake macros. |
| 51 | + echo 'string(APPEND CPPDEFS " -DCPL_BYPASS")' >> cmake_macros/universal.cmake |
| 52 | + ./case.build || cat /home/e3smuser/output/ci_test/bld/e3sm.bldlog.* |
| 53 | + ./case.submit --no-batch |
| 54 | + cat /home/e3smuser/output/ci_test/run/e3sm.log.* |
| 55 | + cat /home/e3smuser/output/ci_test/run/lnd.log.* |
| 56 | + |
0 commit comments