Skip to content

Merge pull request #42 from AlexanderRichert-NOAA/ci_uppates_nov2023 #23

Merge pull request #42 from AlexanderRichert-NOAA/ci_uppates_nov2023

Merge pull request #42 from AlexanderRichert-NOAA/ci_uppates_nov2023 #23

Workflow file for this run

name: Intel
on:
push:
branches:
- develop
pull_request:
branches:
- develop
# Use custom shell with -l so .bash_profile is sourced which loads intel/oneapi/setvars.sh
# without having to do it in manually every step
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
Intel:
runs-on: ubuntu-latest
strategy:
matrix:
compilers: ["CC=icc FC=ifort", "CC=icx FC=ifx"]
steps:
- name: checkout-wrf_io
uses: actions/checkout@v2
with:
path: wrf_io
# See https://software.intel.com/content/www/us/en/develop/articles/oneapi-repo-instructions.html
- name: install-dependencies
run: |
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt-get update
sudo apt-get install intel-oneapi-openmp intel-oneapi-compiler-fortran intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
sudo apt-get install libnetcdf-dev libnetcdff-dev
echo "source /opt/intel/oneapi/setvars.sh" >> ~/.bash_profile
- name: build_wrf_io
run: |
cd wrf_io
mkdir build
cd build
cmake ..
make VERBOSE=1