OpenSC / OpenSC

Open source smart card tools and middleware. PKCS#11/MiniDriver/Tokend
https://github.com/OpenSC/OpenSC/wiki
GNU Lesser General Public License v2.1
2.47k stars 711 forks source link

Use ccache to speed up CI builds #3147

Open Jakuje opened 1 month ago

Jakuje commented 1 month ago

An other option would be to use ccache to speed up the actual build. We could use this GH action or use something like ./configure CC="ccache gcc" and cache CCACHE_DIR ourselves (see https://ccache.dev/manual/4.9.1.html)

Originally posted by @frankmorgner in https://github.com/OpenSC/OpenSC/issues/3096#issuecomment-2040253341

Currently, the CI build is caching some of the build artifacts in the working directory among build stages using https://github.com/actions/cache/ -- Its there quite from the beginning and it is certainly not the most effective. The ccache can do something very similar with much more organized manner.