3535 mpi : openmpi
3636 - os : ubuntu-latest
3737 mpi : mpich
38- - os : windows-latest
39- mpi : msmpi
4038 - os : macos-latest
4139 mpi : openmpi
4240 - os : macos-latest
4543
4644 steps :
4745 - name : Checkout code
48- uses : actions/checkout@v1
46+ uses : actions/checkout@v4
4947
5048 - name : (Ubuntu) setup gcc version
5149 if : contains(matrix.os,'ubuntu')
6967 wget
7068 unzip
7169 curl
72- gcc-fortran
7370
7471 - name : (Windows) Setup VS Build environment
7572 if : contains(matrix.os,'windows') && contains(matrix.mpi,'intel')
8784 Remove-Item "oneAPI" -Force -Recurse
8885
8986 - name : (Ubuntu) Install gfortran
90- if : contains(matrix.os,'ubuntu') && (!contains(matrix.mpi,'intel'))
87+ if : contains(matrix.os,'ubuntu')
9188 run : |
9289 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
9390 --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
@@ -107,16 +104,14 @@ jobs:
107104 if : contains(matrix.os,'ubuntu') && contains(matrix.mpi,'intel')
108105 timeout-minutes : 1
109106 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
114109 sudo apt-get update
115110
116111 - name : (Ubuntu) Install Intel oneAPI
117112 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
120115
121116 - name : (Ubuntu) Setup Intel oneAPI environment
122117 if : contains(matrix.os,'ubuntu') && contains(matrix.mpi,'intel')
@@ -153,6 +148,7 @@ jobs:
153148 if : contains(matrix.os,'windows') && contains(matrix.mpi,'msmpi')
154149 run : |
155150 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
156152 echo "MSMPI_BIN=C:\Program Files\Microsoft MPI\Bin\" | Out-File -FilePath $env:GITHUB_ENV -Append
157153
158154 - name : (Windows) load OneAPI environment variables
@@ -203,7 +199,7 @@ jobs:
203199
204200 # Phase 1: Bootstrap fpm with existing version
205201 - name : Install fpm
206- uses : fortran-lang/setup-fpm@v3
202+ uses : fortran-lang/setup-fpm@v5
207203 with :
208204 fpm-version : ' v0.8.0'
209205
@@ -213,14 +209,6 @@ jobs:
213209 mv $(which fpm) fpm-bootstrap${{ matrix.exe }}
214210 echo "BOOTSTRAP=$PWD/fpm-bootstrap" >> $GITHUB_ENV
215211
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-
224212 - name : (macOS) Use gcc/g++ instead of Clang for C/C++
225213 if : contains(matrix.os,'macOS')
226214 shell : bash
@@ -304,6 +292,14 @@ jobs:
304292 env :
305293 EXE : fpm-${{ env.VERSION }}-${{ matrix.os-arch }}${{ matrix.exe }}
306294
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+
307303 - name : Run metapackage tests using the release version
308304 shell : bash
309305 run : |
0 commit comments