Using GitHub Actions cache is a little more complicated than not caching, but makes the setup time dramatically shorter.
This example uses MKL and MPI.
To avoid problems with the CI executing the scripts, do one time:
git update-index --chmod=+x .github/workflows/oneapi_cache_exclude_linux.sh .github/workflows/oneapi_setup_apt_repo_linux.sh- Fortran only (no MKL or MPI).
- C, C++, and Fortran
- Reference oneAPI repo
@mathomp4 this cache approach may be of interest as it makes the oneAPI Install time seconds instead of minutes for each CI run.