Open orf opened 6 days ago
This seems like it'd be useful. Are you sure that you need the first bit? The docs for the sccache-action don't call this out, so I wonder if this is actually needed.
Also, I'm not clear on where that TOML snippet you shared goes. Is that in your Cargo.toml
? If that's the case, can we set those variables via env vars instead? That way people wouldn't need to modify their Cargo.toml
to take advantage of this. It'd be nice if this just worked transparently for folks (probably with an option to disable it).
And I think that instead of using that sccache.sh
script we could use my ubi
tool. It's a little annoying to use because on Linux x86-64 it tries to download the sccache-dist
tarball instead of sccache, so you need to passing --match sccache-v
to get it to pick the right thing.
Hey! Awesome action <3
It would be amazing to support sccache with this action. It's possible right now, but fiddly: I've hacked it in with:
With
And the dockerfile:
with the script from the cross wiki.