Support multiple platforms#2
Conversation
You can get the current URLs here: https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html. Older Linux URL's are in the spack packages (https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py). The rest are more difficult, but if you only needed a few, I could get them. |
| ? path.join(installPath, 'setvars-vcvarsall.bat') | ||
| : path.join(installPath, 'setvars.sh') | ||
| console.log(`Running environment init script: ${script}`) | ||
| exec.exec(script).then(exitCode => { |
There was a problem hiding this comment.
I don't think exec'ing a script will change the environment for future steps. It looks like you need to do exportVariable
from this package https://github.com/actions/toolkit/tree/main/packages/core, similar to the addPath below. It will be hard to do this because there are many variables and many packages. Other tools implemented something that sources setvars.sh and then diffs the previous environment to collect a set of variables, then sets the variables. The compiler should be usable with path and LD_LIBRARY_PATH. The libraries would need CPATH, LIBRARY_PATH. I would save this task for later.
Work in progress — sketched things out, added an OS layer on the component/URL mapping as well as some C/C++ and Fortran compiler versions. I have not found a full list of available versions on the Intel site, maybe there's a resource I'm missing or a better way than manually collecting them.