35
35
mpi : openmpi
36
36
- os : ubuntu-latest
37
37
mpi : mpich
38
- - os : windows-latest
39
- mpi : msmpi
40
38
- os : macos-latest
41
39
mpi : openmpi
42
40
- os : macos-latest
45
43
46
44
steps :
47
45
- name : Checkout code
48
- uses : actions/checkout@v1
46
+ uses : actions/checkout@v4
49
47
50
48
- name : (Ubuntu) setup gcc version
51
49
if : contains(matrix.os,'ubuntu')
69
67
wget
70
68
unzip
71
69
curl
72
- gcc-fortran
73
70
74
71
- name : (Windows) Setup VS Build environment
75
72
if : contains(matrix.os,'windows') && contains(matrix.mpi,'intel')
87
84
Remove-Item "oneAPI" -Force -Recurse
88
85
89
86
- name : (Ubuntu) Install gfortran
90
- if : contains(matrix.os,'ubuntu') && (!contains(matrix.mpi,'intel'))
87
+ if : contains(matrix.os,'ubuntu')
91
88
run : |
92
89
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
93
90
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
@@ -107,16 +104,14 @@ jobs:
107
104
if : contains(matrix.os,'ubuntu') && contains(matrix.mpi,'intel')
108
105
timeout-minutes : 1
109
106
run : |
110
- wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
111
- sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
112
- rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
113
- echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
107
+ 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
108
+ 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
114
109
sudo apt-get update
115
110
116
111
- name : (Ubuntu) Install Intel oneAPI
117
112
if : contains(matrix.os,'ubuntu') && contains(matrix.mpi,'intel')
118
- timeout-minutes : 5
119
- run : sudo apt-get install intel-oneapi-compiler-fortran intel-oneapi-compiler- dpcpp-cpp-and-cpp-classic intel-oneapi-mpi intel-oneapi-mpi-devel intel-oneapi-mkl ninja-build
113
+ timeout-minutes : 15
114
+ run : sudo apt-get install intel-oneapi-compiler-dpcpp-cpp-2023.1.0 intel-oneapi-compiler-fortran-2023.1.0 intel-oneapi-mpi-devel ninja-build
120
115
121
116
- name : (Ubuntu) Setup Intel oneAPI environment
122
117
if : contains(matrix.os,'ubuntu') && contains(matrix.mpi,'intel')
@@ -153,6 +148,7 @@ jobs:
153
148
if : contains(matrix.os,'windows') && contains(matrix.mpi,'msmpi')
154
149
run : |
155
150
echo "C:\Program Files\Microsoft MPI\Bin\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
151
+ echo "/c/Program Files/Microsoft MPI/Bin/" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
156
152
echo "MSMPI_BIN=C:\Program Files\Microsoft MPI\Bin\" | Out-File -FilePath $env:GITHUB_ENV -Append
157
153
158
154
- name : (Windows) load OneAPI environment variables
@@ -203,7 +199,7 @@ jobs:
203
199
204
200
# Phase 1: Bootstrap fpm with existing version
205
201
- name : Install fpm
206
- uses : fortran-lang/setup-fpm@v3
202
+ uses : fortran-lang/setup-fpm@v5
207
203
with :
208
204
fpm-version : ' v0.8.0'
209
205
@@ -213,14 +209,6 @@ jobs:
213
209
mv $(which fpm) fpm-bootstrap${{ matrix.exe }}
214
210
echo "BOOTSTRAP=$PWD/fpm-bootstrap" >> $GITHUB_ENV
215
211
216
- - name : Use Intel compiler for the metapackage tests
217
- if : contains(matrix.mpi,'intel')
218
- shell : bash
219
- run : |
220
- echo "FPM_FC=ifort" >> $GITHUB_ENV
221
- echo "FPM_CC=icc" >> $GITHUB_ENV
222
- echo "FPM_CXX=icpc" >> $GITHUB_ENV
223
-
224
212
- name : (macOS) Use gcc/g++ instead of Clang for C/C++
225
213
if : contains(matrix.os,'macOS')
226
214
shell : bash
@@ -304,6 +292,14 @@ jobs:
304
292
env :
305
293
EXE : fpm-${{ env.VERSION }}-${{ matrix.os-arch }}${{ matrix.exe }}
306
294
295
+ - name : Use Intel compiler for the metapackage tests
296
+ if : contains(matrix.mpi,'intel')
297
+ shell : bash
298
+ run : |
299
+ echo "FPM_FC=ifx" >> $GITHUB_ENV
300
+ echo "FPM_CC=icx" >> $GITHUB_ENV
301
+ echo "FPM_CXX=icpx" >> $GITHUB_ENV
302
+
307
303
- name : Run metapackage tests using the release version
308
304
shell : bash
309
305
run : |
0 commit comments