oneapi-ci icon indicating copy to clipboard operation
oneapi-ci copied to clipboard

Published GitHub Action

Open jeremylt opened this issue 4 years ago • 11 comments

I was wondering, is there a plan to eventually publish a GitHub action based on the work in this repo? It would certainly make CI against Intel's compilers easier for those of us working on open source for exascale.

jeremylt avatar Nov 30 '20 15:11 jeremylt

Yes, we're certainly looking into adding this capability.

mmzakhar avatar Dec 03 '20 15:12 mmzakhar

Fantastic! Thank you for the info

jeremylt avatar Dec 03 '20 15:12 jeremylt

Any progress on this?

dpo avatar Nov 11 '22 18:11 dpo

It would be great to have an action that cached the install and let you specify version and whether you want C++ or fortran

rscohn2 avatar Nov 11 '22 18:11 rscohn2

Here is an example that downloads/caches a tool and adds it to the path. https://docs.github.com/en/actions/creating-actions/developing-a-third-party-cli-action It also has links to the core package, which lets you exec something.

rscohn2 avatar Nov 11 '22 19:11 rscohn2

Any progress on this?

I implemented an action to install oneapi components. See https://github.com/rscohn2/setup-oneapi

rscohn2 avatar Nov 13 '22 17:11 rscohn2

Thanks @rscohn2! With your action, is it possible to specify the version of the components?

dpo avatar Nov 13 '22 18:11 dpo

Thanks @rscohn2! With your action, is it possible to specify the version of the components?

Right now, it only allows the latest version. If I added [email protected] into https://github.com/rscohn2/setup-oneapi/blob/bf89504c64abcf4756939c713f9e48c3dede1ccf/src/main.js#L10, then you can specify ifx2022.0.0. Every URL has to be added manually, so I didn't do that. Maybe going forward.

rscohn2 avatar Nov 13 '22 18:11 rscohn2

I added version numbers for the latest: https://github.com/rscohn2/setup-oneapi/blob/ed61dc61e54d8903a191298babd5ae3364a64650/src/main.js#L12

rscohn2 avatar Nov 14 '22 13:11 rscohn2

Many thanks! I notice that icc and ifort are not among the possible choices. Unless I'm mistaken, that means the action cannot be used to test macOS builds. Is there any plan to add support for macOS?

dpo avatar Nov 14 '22 17:11 dpo

icc is in the icx component and ifort is in the ifx component, but this action only supports linux. I am not sure if I will do the other platforms. Also, icc has been deprecated.

rscohn2 avatar Nov 14 '22 18:11 rscohn2