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:
72
72
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
73
73
sudo apt-get update
74
74
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"
78
75
source /opt/intel/oneapi/setvars.sh
79
- printenv | sort > "$INTEL_ENV"
80
- comm -13 "$DEFAULT_ENV" "$INTEL_ENV" >> $GITHUB_ENV
76
+ printenv >> $GITHUB_ENV
81
77
82
78
- name : Build
83
79
run : |
84
80
/bin/bash mfc.sh test --dry-run -j $(nproc) --${{ matrix.debug }} --${{ matrix.mpi }} --${{ matrix.precision }}
85
81
86
82
- name : Test
83
+ if : matrix.os == 'macos' || (matrix.os == 'ubuntu' && matrix.intel == false)
87
84
run : |
88
85
/bin/bash mfc.sh test --max-attempts 3 -j $(nproc) $OPT1 $OPT2
89
86
env :
90
87
OPT1 : ${{ matrix.mpi == 'mpi' && '--test-all' || '' }}
91
88
OPT2 : ${{ matrix.debug == 'debug' && '-% 20' || '' }}
92
89
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
+
93
99
self :
94
100
name : Self Hosted
95
101
if : github.repository == 'MFlowCode/MFC' && needs.file-changes.outputs.checkall == 'true'
You can’t perform that action at this time.
0 commit comments