I have several related fortran projects that all have a dependency on a core fortran library.
I am using github actions to automate my build/test cycle, but every time the action is triggered I have to recompile the core library even when changes haven’t been made to it. Has anyone figured out a way to cache built output files so that I can save some time on recompilation?
Caching on GitHub Actions is very doable. I have setup multiple workflows in my day job that cache massive codebases. I think that maybe even some of the fortran-lang repos might be using caching, but I would have to check. The key is form a hash that in/validated correctly when code or dependencies change. Of course the real solution here is a package manager and an online registry to make everyone’s’ lives easier.