Snowiiii / Pumpkin

Empowering everyone to host fast and efficient Minecraft servers.
https://snowiiii.github.io/Pumpkin/
MIT License
3.31k stars 118 forks source link

Cache rust dependencies for GitHub repo workflows #248

Closed lokka30 closed 2 weeks ago

lokka30 commented 2 weeks ago

I've searched existing issues and couldn't find a duplicate.

Is your feature request related to a problem? Please describe.

GitHub action workflows take a while for Pumpkin because it has to recompile all of its dependencies every time it runs. If these dependencies are cached, actions should run quicker.

Describe the solution you'd like

An interesting implementation is demonstrated here.

Snowiiii commented 2 weeks ago

Sounds like a good idea, I was already thinking of adding that

Snowiiii commented 2 weeks ago

I think https://github.com/Snowiiii/Pumpkin/commit/0ab4b5daed9515de85db10c4f33080895f980d05 should resolve this issue