setup-miniconda icon indicating copy to clipboard operation
setup-miniconda copied to clipboard

Caching makes the setup step extremely slow

Open ma-sadeghi opened this issue 3 years ago • 3 comments

w cache: 2:48 w/o cache: 0:48

Reference for w/: https://github.com/PMEAL/porespy/runs/2297831537?check_suite_focus=true Reference for w/o: https://github.com/PMEAL/porespy/runs/2297862739?check_suite_focus=true

ma-sadeghi avatar Apr 08 '21 14:04 ma-sadeghi

I experienced the same issue on ubuntu-latest and macos-latest images.

epassaro avatar Nov 06 '21 21:11 epassaro

In https://github.com/pangeo-forge/pangeo-forge-recipes/pull/231#issuecomment-966623474 we have also found that caching (following the procedure recommended in the docs) does not speed up our builds at all.

Does anyone have evidence of a working cache setup that makes this action run faster?

rabernat avatar Nov 11 '21 21:11 rabernat

I recently found how to cache the installed environment instead of caching the downloaded packages, maybe is useful: https://dev.to/epassaro/caching-anaconda-environments-in-github-actions-5hde

epassaro avatar Nov 11 '21 21:11 epassaro