adventuregamestudio / ags-manual

AGS documentation.
https://adventuregamestudio.github.io/ags-manual/
MIT License
26 stars 9 forks source link

Cache manual build tools #170

Open ericoporto opened 2 years ago

ericoporto commented 2 years ago

It seems autotools download fails from doing too much, it would be great to cache the tools in the GitHub Actions. This was already a problem we had with HTML Help Workshop from archive.org, so we would need to cache anyway.

https://github.com/actions/cache

I think something needs to pickup all the URLs from the workflow and contributing.md and put in a text file, and then use the resulting text file as key to the cache. Or just contributing.md and the workflow file directly.

morganwillcock commented 2 years ago

I think in most cases the cache will have expired by the time the next build runs. I can't find a Ubuntu specific method to install a newer Autoconf version so until one is available I've just modified the existing download so that if the package revision changes it will still get picked up.

https://github.com/adventuregamestudio/ags-manual/commit/0d5b63149dfebbf14b3ffbfa2f7cdbe8e05aa9c2

If it breaks in any more significant way it is is probably best to just download the official release and build and install it. And ideally we should host it somewhere.

Edit: apparently I also forgot to escape the '.' in the actual filename but I'll leave it for the moment to see how it fares and whether the download ever fails.

ericoporto commented 2 years ago

I don't understand much how brew works, but error I observed is this, if you look the URL below it will give an error https://ghcr.io/v2/homebrew/core/automake/manifests/1.16.4 But it seems brew only occasionally hits this URL and not always.

Other than this, HTML Help Workshop could really use being cached, it can be occasionally a slow download. Or we could just put HTML Help Workshop somewhere here on GitHub to download it directly, like using an additional repository as binary file storage.

ivan-mogilko commented 2 years ago

Perhaps it's worth start looking for alternatives to CHM? Maybe in the direction of a convenient web format that may be watched in a browser; Windows CHM viewer requires IE browser to work anyway.