fix github actions rust caching (#3175)
- moves rust setup & caching to a composite action
- only caches on main (we are using 80gb of github's 10gb evicting all
our cache entries instantly)
will see if this is enough or if it has to be reduced further
- cleans up some workflows