@@ -24,24 +24,25 @@ jobs:
2424 os : ['ubuntu']
2525 mpi : ['mpi', 'no-mpi']
2626 debug : ['debug', 'no-debug']
27- intel : [true]
27+ intel : [true, false ]
2828 fail-fast : false
2929 continue-on-error : true
3030 runs-on : ${{ matrix.os }}-latest
3131 steps :
3232 - name : Clone
33+ if : matrix.os == 'ubuntu' || (matrix.os == 'macos' && matrix.intel == false)
3334 uses : actions/checkout@v3
3435
3536 - name : Setup MacOS
36- if : matrix.os == 'macos'
37+ if : matrix.os == 'macos' && matrix.intel == false
3738 run : |
3839 echo "CC=gcc-13" >> $GITHUB_ENV
3940 echo "CXX=g++-13" >> $GITHUB_ENV
4041 echo "FC=gfortran-13" >> $GITHUB_ENV
4142 brew install wget make python make cmake coreutils gcc@13
4243
4344 - name : (MacOS) Build OpenMPI
44- if : matrix.os == 'macos' && matrix.mpi == 'mpi'
45+ if : matrix.os == 'macos' && matrix.mpi == 'mpi' && matrix.intel == false
4546 run : |
4647 echo "OMPI_FC=gfortran-13" >> $GITHUB_ENV
4748 echo "OMPI_CXX=g++-13" >> $GITHUB_ENV
7576 echo "I_MPI_ROOT=/opt/intel/oneapi/mpi/2021.7.1/" >> $GITHUB_ENV
7677
7778 - name : Build-intel
78- if : matrix.intel == true
79+ if : matrix.intel == true && matrix.os == 'ubuntu'
7980 run : |
8081 source /opt/intel/oneapi/setvars.sh
8182 /bin/bash mfc.sh build -j $(nproc) --${{ matrix.debug }} --${{ matrix.mpi }}
8687 /bin/bash mfc.sh build -j $(nproc) --${{ matrix.debug }} --${{ matrix.mpi }}
8788
8889 - name : Test-intel
89- if : matrix.intel == true
90+ if : matrix.intel == true && matrix.os == 'ubuntu'
9091 run : |
9192 source /opt/intel/oneapi/setvars.sh
9293 /bin/bash mfc.sh test -j $(nproc) $(if [ "${{ matrix.mpi }}" == "mpi" ]; then echo "--test-all"; fi)
0 commit comments