Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to cache the installed conda? #253

Open
tbenthompson opened this issue Nov 3, 2022 · 3 comments
Open

Is there a way to cache the installed conda? #253

tbenthompson opened this issue Nov 3, 2022 · 3 comments

Comments

@tbenthompson
Copy link

I'm currently using environment caching to speed up by CI runs as described by: https://github.com/conda-incubator/setup-miniconda#caching-environments

But, the installation of conda itself takes about a minute of runtime on our CI. It would be nice to cache this step since we do not need to check for new miniconda versions every run - once a day or once a week would be more than sufficient.

It's not clear to me if there's a way to achieve this. I can use the cache action to cache the installed directory, but then putting the setup-miniconda action inside an if statement would be problematic because it would also lose the environment activation behavior.

Thanks for any help!

@goanpeca
Copy link
Member

goanpeca commented Nov 3, 2022

Hi @tbenthompson,

Regarding:

But, the installation of conda itself takes about a minute of runtime on our CI

if you do not require the "latest" miniconda, you could just use the bundled one that comes with all runners, so there would not be any installation step!

@tbenthompson
Copy link
Author

Oh, that's a good point. Thanks. I guess this can be closed then! Maybe it would be good to have a note on runtime in the documentation that using "latest" will be much slower. It makes sense in retrospect, but I didn't think of it until now.

@goanpeca
Copy link
Member

goanpeca commented Nov 3, 2022

Will make the update, thanks for the suggestion.

Reopening the issue to track it :)

@goanpeca goanpeca reopened this Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants