unsplash / intlc

Compile ICU messages into code. Supports TypeScript and JSX. No runtime.
MIT License
56 stars 2 forks source link

Better CI caching #203

Closed samhh closed 7 months ago

samhh commented 8 months ago

This PR fixes the Cabal store cache, adds cache restore keys, splits TypeScript dependencies into their own Nix shell, and adds caching of incremental build artifacts.

Building is reduced from ~5 mins to ~1 min 30s. A CI run with changed code and dependencies should be expected to run somewhere between these two numbers, utilising partial caches. The TypeScript typechecking job is also reduced from ~60s to ~20s