2626 - name : Install dependencies
2727 if : steps.netcdf-cache.outputs.cache-hit != 'true'
2828 run : |
29- sudo rm /var/lib/man-db/auto-update
3029 sudo apt update
3130 sudo apt install -y build-essential gfortran m4 curl libhdf5-dev libnetcdf-dev
3231
8584 - name : Install Intel oneAPI + deps
8685 if : steps.netcdf-cache.outputs.cache-hit != 'true'
8786 run : |
88- sudo rm /var/lib/man-db/auto-update
8987 wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
9088 echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
9189 sudo apt update
@@ -154,13 +152,16 @@ jobs:
154152
155153 - name : Rewrite .gitmodules to use HTTPS
156154 run : |
157- git config --file .gitmodules submodule.harvest.url https://github.com/gafusion/harvest_client.git
155+ git config --file .gitmodules submodule."deps/src/harvest".url https://github.com/gafusion/harvest_client.git
156+ git config --file .gitmodules submodule."deps/src/netcdf-c".url https://github.com/Unidata/netcdf-c.git
157+ git config --file .gitmodules submodule."deps/src/netcdf-fortran".url https://github.com/Unidata/netcdf-fortran.git
158+ git config --file .gitmodules submodule."deps/src/hdf5".url https://github.com/HDFGroup/hdf5.git
159+ git config --file .gitmodules submodule."deps/src/OpenBLAS".url https://github.com/OpenMathLib/OpenBLAS.git
158160 git submodule sync
159- git submodule update --init --recursive
161+ git submodule update --init --recursive "deps/src/harvest"
160162
161163 - name : Install Dependencies
162164 run : |
163- sudo rm /var/lib/man-db/auto-update
164165 sudo apt update
165166 sudo apt install -y gfortran libopenblas-dev libx11-dev libnetcdf-dev
166167
@@ -173,7 +174,7 @@ jobs:
173174 export FC=/usr/bin/gfortran
174175 export CC=/usr/bin/gcc
175176 export FFLAGS='-fallow-argument-mismatch -O0 -Wall -Wextra -fcheck=all,no-array-temps -fbacktrace -finit-real=snan -finit-integer=-9999 -fstack-protector-all -fsanitize=bounds -Wno-array-temporaries -Wno-unused-variable -Wno-unused-dummy-argument -Wno-compare-reals -Wno-unused-parameter -Wno-unused-label -fno-omit-frame-pointer -frecord-marker=4 -gdwarf-4 -ffloat-store -fbounds-check'
176- make
177+ make -j$(nproc)
177178
178179 - name : Run Soloviev ideal example
179180 run : |
@@ -217,7 +218,6 @@ jobs:
217218
218219 - name : Install Intel oneAPI + deps
219220 run : |
220- sudo rm /var/lib/man-db/auto-update
221221 wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
222222 echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
223223 sudo apt update
@@ -233,9 +233,12 @@ jobs:
233233
234234 - name : Rewrite .gitmodules to use HTTPS
235235 run : |
236- git config --file .gitmodules submodule.harvest.url https://github.com/gafusion/harvest_client.git
237- git submodule sync
238- git submodule update --init --recursive
236+ git config --file .gitmodules submodule."deps/src/harvest".url https://github.com/gafusion/harvest_client.git
237+ git config --file .gitmodules submodule."deps/src/netcdf-c".url https://github.com/Unidata/netcdf-c.git
238+ git config --file .gitmodules submodule."deps/src/netcdf-fortran".url https://github.com/Unidata/netcdf-fortran.git
239+ git config --file .gitmodules submodule."deps/src/hdf5".url https://github.com/HDFGroup/hdf5.git
240+ git config --file .gitmodules submodule."deps/src/OpenBLAS".url https://github.com/OpenMathLib/OpenBLAS.git
241+ git submodule update --init --recursive "deps/src/harvest"
239242
240243 - name : Compile
241244 run : |
@@ -247,7 +250,7 @@ jobs:
247250 export FC=/opt/intel/oneapi/compiler/2022.2.1/linux/bin/intel64/ifort
248251 export CC=/usr/bin/gcc
249252 export FFLAGS='-O0 -warn all -check all -check noarg_temp_created -traceback -fpe3 -fstack-protector -fopenmp'
250- make
253+ make -j$(nproc)
251254
252255 - name : Run Soloviev ideal example
253256 run : |
0 commit comments