File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,11 @@ jobs:
2121 name : Github
2222 strategy :
2323 matrix :
24- os : ['ubuntu', 'macos' ]
24+ os : ['ubuntu']
2525 mpi : ['mpi', 'no-mpi']
2626 debug : ['debug', 'no-debug']
2727 intel : [true, false]
2828 fail-fast : false
29- if : matrix.os == 'ubuntu' && matrix.intel == true
3029 continue-on-error : true
3130 runs-on : ${{ matrix.os }}-latest
3231 steps :
@@ -75,15 +74,25 @@ jobs:
7574 echo "MPI_HOME=/opt/intel/oneapi/mpi/2021.7.1/" >> $GITHUB_ENV
7675 echo "I_MPI_ROOT=/opt/intel/oneapi/mpi/2021.7.1/" >> $GITHUB_ENV
7776
78- - name : Build
79- run : |
80- source /opt/intel/oneapi/setvars.sh
81- /bin/bash mfc.sh build -j $(nproc) --${{ matrix.debug }} --${{ matrix.mpi }}
77+ if : matrix.intel == true
78+ - name : Build
79+ run : |
80+ source /opt/intel/oneapi/setvars.sh
81+ /bin/bash mfc.sh build -j $(nproc) --${{ matrix.debug }} --${{ matrix.mpi }}
8282
83- - name : Test
84- run : |
85- source /opt/intel/oneapi/setvars.sh
86- /bin/bash mfc.sh test -j $(nproc) $(if [ "${{ matrix.mpi }}" == "mpi" ]; then echo "--test-all"; fi)
83+ - name : Test
84+ run : |
85+ source /opt/intel/oneapi/setvars.sh
86+ /bin/bash mfc.sh test -j $(nproc) $(if [ "${{ matrix.mpi }}" == "mpi" ]; then echo "--test-all"; fi)
87+
88+ if : matrix.intel == false
89+ - name : Build
90+ run : |
91+ /bin/bash mfc.sh build -j $(nproc) --${{ matrix.debug }} --${{ matrix.mpi }}
92+
93+ - name : Test
94+ run : |
95+ /bin/bash mfc.sh test -j $(nproc) $(if [ "${{ matrix.mpi }}" == "mpi" ]; then echo "--test-all"; fi)
8796
8897 docker :
8998 name : Github | Docker
You can’t perform that action at this time.
0 commit comments