Skip to content

Commit b0e6e8a

Browse files
sbryngelsonclaude
andcommitted
Fix Intel CI env corruption and remove Python 3.14 pinning
- Replace `printenv >> $GITHUB_ENV` with a before/after diff that exports only vars added/changed by Intel setvars.sh. The old approach dumped all env vars including shell internals with special characters, causing "Invalid format" errors in GitHub Actions. - Remove explicit Python 3.14 setup from test.yml and lint-toolchain.yml (runners already have a suitable Python). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 09b144d commit b0e6e8a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/lint-toolchain.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
- name: MFC Python setup
18-
uses: actions/setup-python@v5
19-
with:
20-
python-version: '3.14'
21-
2217
- name: Initialize MFC
2318
run: ./mfc.sh init
2419

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,13 @@ jobs:
226226
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
227227
sudo apt-get update
228228
sudo apt-get install -y intel-oneapi-compiler-fortran intel-oneapi-mpi intel-oneapi-mpi-devel
229+
# Export only new/changed env vars from setvars.sh.
230+
# `printenv >> $GITHUB_ENV` dumps all vars including shell internals
231+
# with special characters that corrupt GITHUB_ENV parsing.
232+
printenv | sort > /tmp/env_before
229233
source /opt/intel/oneapi/setvars.sh
230-
printenv >> $GITHUB_ENV
234+
printenv | sort > /tmp/env_after
235+
diff /tmp/env_before /tmp/env_after | grep '^>' | sed 's/^> //' >> $GITHUB_ENV
231236
232237
- name: Get system info for cache key
233238
id: sys-info

0 commit comments

Comments
 (0)