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 it possible to cache the font downloaded files to make the step faster? #37

Open
Happyrobot33 opened this issue Feb 12, 2024 · 4 comments

Comments

@Happyrobot33
Copy link

Running this step is quite slow and adds an easy 3 minutes to my github automation that has to run for every web rebuild. Is it possible to cache the font downloads in any way? I know github actions has a cache system but im not sure how i would have to set that up to help here or if it would even help

@mattnotmitt
Copy link
Owner

Sorry that I'm responding so late!

I've previously tried to use a pre-built docker image with all of the LaTeX dependencies pre-installed to reduce how long installing it takes, but it ended up taking longer to pull for all users who didn't need LaTeX PDF generation as it didn't get to take advantage of how well cached the base alpine images are. Personally I'm not sure how I'd set it up. I'll leave this open for other users who might have similar issues in future, but I'm unlikely to re-attempt this in the near future.

@Happyrobot33
Copy link
Author

I actually have since making this issue set something up specifically like you described, its insanely fast now, taking like literally 3 seconds for a action containing just it to run

@Happyrobot33
Copy link
Author

Heres a link to one of the runs to show you

https://github.com/Mattshark89/OpenFlight-VRC/actions/runs/12932194855

May be a setup to look into implementing

@mattnotmitt
Copy link
Owner

Ha, good to see that disabling latex sorted it for you!

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