-
Notifications
You must be signed in to change notification settings - Fork 16
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
Github Action improvements #624
Conversation
9db8dbe
to
d567e73
Compare
d567e73
to
ad2394d
Compare
* Make it more like `cardano-base`. * Drop the ad-hoc caching in favour of Cabal caching.
ad2394d
to
fdbf565
Compare
Previously the GHAs would store the cache after building the dependencies but never restore them. Did a thorough investigation of the issue and added proper comments about how it works and why.
fdbf565
to
924711b
Compare
${{ steps.setup-haskell.outputs.cabal-store }} | ||
dist-newstyle | ||
key: cache-${{ env.CABAL_CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dependencies.txt') }} | ||
restore-keys: | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of of restore-keys
here? Shouldn't key
be enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure. THis cache restoration code was cargo culted from elsewhere. I can try deleting it if you like, see if it still works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left over garbage from where I cargo-culted this from.
PR to remove it at: #628
Changelog
Context
Improve and simplify GHA.
Checklist