This is currently blocked by GitHub having not yet released their caching feature.
A popular workaround I've seen so far is to save the cache as a 'Release' (either in same project or another) then just load that release via URL and populate as necessary.
Oh wow that's sneaky :)
I can implement this if you can provide more info. I probably just need to know what to cache.
We want to cache the gleam/target directory I think. There might be some other directories we want to cache too, there's probably some best practices for caching Rust builds on the internet somewhere.
OK, I'll check the best practices and try to implement it with the releases hack until the real caching is available.
You can assign this to me too.
There's a new preview version of a cache action here https://github.com/actions/cache
I tried it, but I exceeded the size limit of a cache (200MB), see https://github.com/EskiMag/gleam/runs/283487225#step:3:0
Are we able to somehow reduce the size to cache?
The limit is already discussed here https://github.com/actions/cache/issues/6
Maybe it's enough to just wait until it's increased.
Good find! Let's wait for it to offer more storage because 200MB is not workable for us.