effekt-lang / effekt

A language with lexical effect handlers and lightweight effect polymorphism
https://effekt-lang.org
MIT License
335 stars 24 forks source link

Cache sbt files in CI, update versions of CI actions #560

Closed jiribenes closed 3 months ago

jiribenes commented 3 months ago

Investigating #428 since I noticed that setup-java allows simple sbt caching when playing with https://github.com/effekt-lang/effekt/pull/538 :)

jiribenes commented 3 months ago

It's very difficult to measure if this helps at all, I'm guesstimating based on only 5 runs. On a cache hit, this PR makes the CI go from around ~11m40-12m55 to ~11m20-12m15. On a cache miss, it takes much longer (15m00), but we shouldn't have a cache miss too often (our sbt dependencies, Java/Scala versions are stable)

Regarding what could be done next:

jiribenes commented 3 months ago

I think it's worth merging this, even if the speed-up isn't too huge, but I'll leave #428 open as yet unresolved. I'll also back-port these changes into #538 :)