The cache doesn't work, the build works just fine, but no cache, recompiling everything.
P.S. It may be because of CARGO_INCREMENTAL, let me check...
Okay, I had tests after the build, and they failed, so the cache hasn't been saved. After I fixed tests it worked. (I thought it will save cache even if it fails)
@jofas thank you for pointing it out, I guess their Ubuntu packages already have it or maybe it uses some magic to target another dist, no idea.
As you've seen, they try to ensure a good "default" set of popular tools, as a trade-off between time to download the image to the runners and average time installing tools every time.
You can run a set-up action to ensure it gets a fixed version, but the ideal is it's already there and they can skip the install.