As discussed in #8840, due to caching, our CI is probably stuck with ~/.cabal currently. It may be a good idea to wipe the cache and see where it brings us. Also, maybe it makes sense to add some diagnostics in the CI to make it more clear which setup we use (legacy or XDG).
As we’re using setup-haskell action, this is related: