Skip to content

Commit 933cf18

Browse files
Testing change for safer intel environment setup
1 parent 75d69a2 commit 933cf18

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,12 @@ 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"
7578
source /opt/intel/oneapi/setvars.sh
76-
printenv >> $GITHUB_ENV
77-
79+
printenv | sort > "$INTEL_ENV"
80+
comm -13 "$DEFAULT_ENV" "$INTEL_ENV" >> $GITHUB_ENV
7881
7982
- name: Build
8083
run: |

0 commit comments

Comments
 (0)