3131 build : make
3232 env :
3333 FC : gfortran-${{ matrix.gcc_v }}
34+ CC : gcc-${{ matrix.gcc_v }}
35+ CXX : g++-${{ matrix.gcc_v }}
3436 GCC_V : ${{ matrix.gcc_v }}
3537 BUILD_DIR : ${{ matrix.build == 'cmake' && 'build' || '.' }}
3638
@@ -46,17 +48,18 @@ jobs:
4648 - name : Install fypp
4749 run : pip install --upgrade fypp
4850
49- - name : Install GFortran Linux
51+ - name : Install GCC compilers Linux
5052 if : contains( matrix.os, 'ubuntu')
5153 run : |
5254 sudo add-apt-repository ppa:ubuntu-toolchain-r/test
5355 sudo apt-get update
54- sudo apt-get install -y gcc-${GCC_V} gfortran-${GCC_V}
56+ sudo apt-get install -y gcc-${GCC_V} g++-${GCC_V} gfortran-${GCC_V}
5557 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
5658 --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
59+ --slave /usr/bin/g++ g++ /usr/bin/g++-${GCC_V} \
5760 --slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}
5861
59- - name : Install GFortran macOS
62+ - name : Install GCC compilers macOS
6063 if : contains( matrix.os, 'macos')
6164 run : |
6265 brew install gcc@${GCC_V} || brew upgrade gcc@${GCC_V} || true
@@ -108,12 +111,15 @@ jobs:
108111 matrix :
109112 os : [ubuntu-latest, macos-latest]
110113 fc : [ifort]
114+ cc : [icc]
115+ cxx : [icpc]
111116 env :
112117 MACOS_HPCKIT_URL : >-
113- https://registrationcenter-download.intel.com/akdlm/irc_nas/17398/m_HPCKit_p_2021.1.0.2681_offline.dmg
114- MACOS_FORTRAN_COMPONENTS : >-
115- intel.oneapi.mac.ifort-compiler
118+ https://registrationcenter-download.intel.com/akdlm/irc_nas/18242/m_HPCKit_p_2021.4.0.3389_offline.dmg
119+ MACOS_FORTRAN_COMPONENTS : all
116120 FC : ${{ matrix.fc }}
121+ CC : ${{ matrix.cc }}
122+ CXX : ${{ matrix.cxx }}
117123
118124 steps :
119125 - name : Checkout code
@@ -151,6 +157,7 @@ jobs:
151157 if : contains(matrix.os, 'ubuntu')
152158 run : |
153159 sudo apt-get install intel-oneapi-compiler-fortran
160+ sudo apt-get install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
154161
155162 - name : Install Intel oneAPI compiler (OSX)
156163 if : contains(matrix.os, 'macos') && steps.cache-install.outputs.cache-hit != 'true'
0 commit comments