Commit 0dc29e2
committed
ci: restore /usr/local/bin/python symlink overwritten by runner hook
The self-hosted runner's container startup command runs
`ln -sf /usr/bin/python3 /usr/local/bin/python`, repointing the image's
python3.12 symlink at Debian's PEP-668 externally-managed python3.11.
This breaks /usr/local/bin/rocm-smi (shebang #!/usr/local/bin/python ->
ModuleNotFoundError: rocm_sdk_core) and any later `python ...` call in
the workflow. Restore the symlink to python3.12 as the very first step
so subsequent steps see the image's intended interpreter.
Drop the GITHUB_PATH prepend; /usr/local/bin is already first in PATH
per the runner env dump, the symlink itself was the broken thing.
Signed-off-by: Matthias Gehre <matthias.gehre@amd.com>1 parent b739b38 commit 0dc29e2
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
152 | 160 | | |
153 | 161 | | |
154 | 162 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 163 | | |
159 | 164 | | |
160 | 165 | | |
| |||
0 commit comments