2626 CPPFLAGS : " -I/usr/include -I/usr/local/include "
2727 LDFLAGS : " -L/usr/lib/x86_64-linux-gnu -lnetcdf -lnetcdff -lpnetcdf"
2828 # Versions of all dependencies can be updated here
29- ESMF_VERSION : v8.6.0
29+ ESMF_VERSION : v8.6.1
3030 PARALLELIO_VERSION : pio2_6_2
3131 CIME_MODEL : cesm
3232 CIME_DRIVER : nuopc
@@ -64,13 +64,13 @@ jobs:
6464 run : pip install -r requirements.txt
6565 # use the latest cesm main
6666 - name : cesm checkout
67- uses : actions/checkout@v3
67+ uses : actions/checkout@v4
6868 with :
6969 repository : ESCOMP/CESM
7070 path : cesm
7171 # this cmeps commit
7272 - name : cmeps checkout
73- uses : actions/checkout@v3
73+ uses : actions/checkout@v4
7474 with :
7575 path : cesm/components/cmeps
7676
7979 - name : checkout externals
8080 run : |
8181 pushd cesm
82- ./manage_externals/checkout_externals ccs_config cdeps share mct cpl7 parallelio
82+ ./bin/git-fleximod update ccs_config cdeps share mct parallelio
8383 cd ccs_config
8484 git checkout main
8585 cd ../
@@ -94,72 +94,55 @@ jobs:
9494 git submodule update --init
9595 cd ../components/cdeps
9696 git checkout main
97+ git submodule update --init
98+ cd ../../share
99+ git checkout main
97100
98101 - name : Cache ESMF
99102 id : cache-esmf
100- uses : actions/cache@v3
103+ uses : actions/cache@v4
101104 with :
102105 path : ~/ESMF
103- key : ${{ runner.os }}-${{ env.ESMF_VERSION }}-ESMF1
104- # - name: cache pnetcdf
105- # id: cache-pnetcdf
106- # uses: actions/cache@v3
107- # with:
108- # path: ~/pnetcdf
109- # key: ${{ runner.os }}-${{ env.PNETCDF_VERSION}}-pnetcdf
110-
111- # - name: Cache netcdf-fortran
112- # id: cache-netcdf-fortran
113- # uses: actions/cache@v3
114- # with:
115- # path: ~/netcdf-fortran
116- # key: ${{ runner.os }}-${{ env.NETCDF_FORTRAN_VERSION }}-netcdf-fortran
106+ key : ${{ runner.os }}-${{ env.ESMF_VERSION }}
117107
118108 - name : Cache ParallelIO
119109 id : cache-ParallelIO
120- uses : actions/cache@v3
110+ uses : actions/cache@v4
121111 with :
122- path : ~ /pio
112+ path : ${GITHUB_WORKSPACE} /pio
123113 key : ${{ runner.os }}-${{ env.PARALLELIO_VERSION }}.parallelio
114+
124115 - name : Cache inputdata
125116 id : cache-inputdata
126- uses : actions/cache@v3
117+ uses : actions/cache@v4
127118 with :
128119 path : $HOME/cesm/inputdata
129120 key : inputdata
130- # - name: Build PNetCDF
131- # if: steps.cache-pnetcdf.outputs.cache-hit != 'true'
132- # uses: ESCOMP/CDEPS/.github/actions/buildpnetcdf@e06246b560d3132170bb1a5443fa3d65dfbd2040
133- # with:
134- # pnetcdf_version: ${{ env.PNETCDF_VERSION }}
135- # install_prefix: $HOME/pnetcdf
136- # - name: Build NetCDF Fortran
137- # if: steps.cache-netcdf-fortran.outputs.cache-hit != 'true'
138- # uses: ESCOMP/CDEPS/.github/actions/buildnetcdff@e06246b560d3132170bb1a5443fa3d65dfbd2040
139- # with:
140- # netcdf_fortran_version: ${{ env.NETCDF_FORTRAN_VERSION }}
141- # install_prefix: $HOME/netcdf-fortran
142- # netcdf_c_path: /usr
121+
143122 - name : Build ParallelIO
144123 if : steps.cache-PARALLELIO.outputs.cache-hit != 'true'
145124 uses : NCAR/ParallelIO/.github/actions/parallelio_cmake@05173a6556ea8d80eb34e3881a5014ea8f4b7543
146125 with :
147126 parallelio_version : ${{ env.ParallelIO_VERSION }}
148127 enable_fortran : True
149- install_prefix : /home/runner /pio
128+ install_prefix : ${GITHUB_WORKSPACE} /pio
150129
151- - name : Build ESMF
152- if : steps.cache-esmf.outputs.cache-hit != 'true'
153- uses : ESCOMP/CDEPS/.github/actions/buildesmf@e06246b560d3132170bb1a5443fa3d65dfbd2040
130+ - name : Install ESMF
131+ uses : esmf-org/install-esmf-action@v1
132+ env :
133+ ESMF_COMPILER : gfortran
134+ ESMF_BOPT : g
135+ ESMF_COMM : openmpi
136+ ESMF_NETCDF : nc-config
137+ ESMF_PNETCDF : pnetcdf-config
138+ ESMF_INSTALL_PREFIX : ${GITHUB_WORKSPACE}/ESMF
139+ ESMF_PIO : external
140+ ESMF_PIO_INCLUDE : ${GITHUB_WORKSPACE}/pio/include
141+ ESMF_PIO_LIBPATH : ${GITHUB_WORKSPACE}/pio/lib
154142 with :
155- esmf_version : ${{ env.ESMF_VERSION }}
156- esmf_bopt : g
157- esmf_comm : openmpi
158- install_prefix : ~/ESMF
159- netcdf_c_path : /usr
160- netcdf_fortran_path : /usr
161- pnetcdf_path : /usr
162- parallelio_path : ~/pio
143+ version : ${{ env.ESMF_VERSION }}
144+ esmpy : false
145+ cache : true
163146
164147
165148 - name : PREP for scripts regression test
@@ -169,14 +152,13 @@ jobs:
169152 pushd $GITHUB_WORKSPACE/cesm/cime/CIME/tests
170153 export SRCROOT=$GITHUB_WORKSPACE/cesm/
171154 export CIME_TEST_PLATFORM=ubuntu-latest
172- export PIO_INCDIR=$HOME /pio/include
173- export PIO_LIBDIR=$HOME /pio/lib
155+ export PIO_INCDIR=$GITHUB_WORKSPACE /pio/include
156+ export PIO_LIBDIR=$GITHUB_WORKSPACE /pio/lib
174157 export PIO_VERSION_MAJOR=2
175158 export PIO_TYPENAME_VALID_VALUES="netcdf,pnetcdf"
176159 export NETCDF_PATH=/usr
177160 export PNETCDF_PATH=/usr
178161 export LD_LIBRARY_PATH=/usr/lib/libx86_64-linux-gnu/:$LD_LIBRARY_PATH
179- export ESMFMKFILE=$HOME/ESMF/lib/libg/Linux.gfortran.64.openmpi.default/esmf.mk
180162 cat <<EOF >> $GITHUB_WORKSPACE/cesm/ccs_config/machines/cmake_macros/ubuntu-latest.cmake
181163 set(NetCDF_Fortran_INCLUDE_DIR /usr/include)
182164 set(NetCDF_Fortran_LIBRARY /usr/lib/x86_64-gnu-Linux/libnetcdff.so)
0 commit comments