Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache .hie directory in CI #2490

Merged
merged 3 commits into from
Nov 1, 2023
Merged

Cache .hie directory in CI #2490

merged 3 commits into from
Nov 1, 2023

Conversation

paulcadman
Copy link
Collaborator

We use the options in package.yaml.

         - -fhide-source-paths
         - -fwrite-ide-info -hiedir=.hie

If a previously available .hie directory is missing then GHC will rebuild the whole project with reason: [HIE file is missing]. So we need to cache it to take advantage of incremental builds.

The .hie directory cache does not need to depend on the project
state (apart from OS). When building locally one does not need to touch
the .hie directory.
@paulcadman
Copy link
Collaborator Author

paulcadman commented Nov 1, 2023

Compare Stack Setup in

This change only saves 1.5 minutes from the build in total. This is better than nothing I suppose!

@paulcadman paulcadman marked this pull request as ready for review November 1, 2023 12:26
@jonaprieto
Copy link
Collaborator

This change only saves 1.5 minutes from the build in total. This is better than nothing I suppose!

Thanks!

@jonaprieto jonaprieto merged commit 7f009ce into main Nov 1, 2023
6 of 8 checks passed
@jonaprieto jonaprieto deleted the cache-hie branch November 1, 2023 13:15
@jonaprieto jonaprieto added this to the 0.5.4 milestone Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants