Fix cabal store path for gh-action Ubuntu #1183
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Nothing's cached when applying suggested configuration for cabal caching. Exploring the Ubuntu image, it happens that cabal does not store its data in ~/.cabal but, instead, in:
You can see this CI using this configuration: https://github.com/pgrange/to_remove_cache/blob/main/.github/workflows/blank.yml
Description
Fix suggested configuration for cabal.
Motivation and Context
The cache was not working for me and it took me some time to figure out that the cache was not looking into the appropriate paths.
How Has This Been Tested?
See this exemple CI: https://github.com/pgrange/to_remove_cache/blob/main/.github/workflows/blank.yml
See this CI run where we can see something's been fetched from the cache: https://github.com/pgrange/to_remove_cache/actions/runs/5216337562/jobs/9414956883
Types of changes
Checklist: