Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Improve cache keys and their restore prefixes
The cache key for nix now depends on default.nix and shell.nix in the root folder and all .patch files in the nix folder. Those may change the output of our nix derivations, so must be included. At the same time, there is no reason to include the actions/setup-nix folder. This would only lead to new caches being created every time we update one of the dependent actions in this file. Finally, we never restore caches with a different id any- more. There is no point in having the style job fall back to the static cache for example. The cache keys for cabal can be more explicit: We only have one postgrest.cabal and one relevant cabal.project file. We were missing the cabal.project.freeze file, though, which affects the dependencies used, too.
- Loading branch information