File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -72,24 +72,30 @@ jobs:
7272 sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
7373 sudo apt-get update
7474 sudo apt-get install -y intel-oneapi-compiler-fortran intel-oneapi-mpi intel-oneapi-mpi-devel
75- DEFAULT_ENV=$(mktemp)
76- INTEL_ENV=$(mktemp)
77- printenv | sort > "$DEFAULT_ENV"
7875 source /opt/intel/oneapi/setvars.sh
79- printenv | sort > "$INTEL_ENV"
80- comm -13 "$DEFAULT_ENV" "$INTEL_ENV" >> $GITHUB_ENV
76+ printenv >> $GITHUB_ENV
8177
8278 - name : Build
8379 run : |
8480 /bin/bash mfc.sh test --dry-run -j $(nproc) --${{ matrix.debug }} --${{ matrix.mpi }} --${{ matrix.precision }}
8581
8682 - name : Test
83+ if : matrix.os == 'macos' || (matrix.os == 'ubuntu' && matrix.intel == false)
8784 run : |
8885 /bin/bash mfc.sh test --max-attempts 3 -j $(nproc) $OPT1 $OPT2
8986 env :
9087 OPT1 : ${{ matrix.mpi == 'mpi' && '--test-all' || '' }}
9188 OPT2 : ${{ matrix.debug == 'debug' && '-% 20' || '' }}
9289
90+ name : Test (Intel)
91+ if : matrix.os == 'ubuntu' && matrix.intel == true
92+ run : |
93+ source /opt/intel/oneapi/setvars.sh --force
94+ /bin/bash mfc.sh test --max-attempts 3 -j $(nproc) $OPT1 $OPT2
95+ env :
96+ OPT1 : ${{ matrix.mpi == 'mpi' && '--test-all' || '' }}
97+ OPT2 : ${{ matrix.debug == 'debug' && '-% 20' || '' }}
98+
9399 self :
94100 name : Self Hosted
95101 if : github.repository == 'MFlowCode/MFC' && needs.file-changes.outputs.checkall == 'true'
You can’t perform that action at this time.
0 commit comments