31
31
build : make
32
32
env :
33
33
FC : gfortran-${{ matrix.gcc_v }}
34
+ CC : gcc-${{ matrix.gcc_v }}
35
+ CXX : g++-${{ matrix.gcc_v }}
34
36
GCC_V : ${{ matrix.gcc_v }}
35
37
BUILD_DIR : ${{ matrix.build == 'cmake' && 'build' || '.' }}
36
38
@@ -46,17 +48,18 @@ jobs:
46
48
- name : Install fypp
47
49
run : pip install --upgrade fypp
48
50
49
- - name : Install GFortran Linux
51
+ - name : Install GCC compilers Linux
50
52
if : contains( matrix.os, 'ubuntu')
51
53
run : |
52
54
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
53
55
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}
55
57
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
56
58
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
59
+ --slave /usr/bin/g++ g++ /usr/bin/g++-${GCC_V} \
57
60
--slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}
58
61
59
- - name : Install GFortran macOS
62
+ - name : Install GCC compilers macOS
60
63
if : contains( matrix.os, 'macos')
61
64
run : |
62
65
brew install gcc@${GCC_V} || brew upgrade gcc@${GCC_V} || true
@@ -108,12 +111,15 @@ jobs:
108
111
matrix :
109
112
os : [ubuntu-latest, macos-latest]
110
113
fc : [ifort]
114
+ cc : [icc]
115
+ cxx : [icpc]
111
116
env :
112
117
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
116
120
FC : ${{ matrix.fc }}
121
+ CC : ${{ matrix.cc }}
122
+ CXX : ${{ matrix.cxx }}
117
123
118
124
steps :
119
125
- name : Checkout code
@@ -151,6 +157,7 @@ jobs:
151
157
if : contains(matrix.os, 'ubuntu')
152
158
run : |
153
159
sudo apt-get install intel-oneapi-compiler-fortran
160
+ sudo apt-get install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
154
161
155
162
- name : Install Intel oneAPI compiler (OSX)
156
163
if : contains(matrix.os, 'macos') && steps.cache-install.outputs.cache-hit != 'true'
0 commit comments