Skip to content

Commit 14b9a0d

Browse files
Another test to see if force-setting the intel environment for the build and test changes anything at all
1 parent 933cf18 commit 14b9a0d

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)