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

CI: don't share cache between C compilers #26

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

runeksvendsen
Copy link
Collaborator

@runeksvendsen runeksvendsen commented Jan 13, 2025

The "Cache cabal files"-step would restore a cache from a key that does not include the C compiler, which means a job using e.g. Clang as the C compiler could restore stuff built using GCC.

Also, the restore-keys key didn't even include the GHC version. This meant that -- in case of a cache miss for key -- a cache built by one GHC version could be pulled for a CI run for another GHC version.

The "Cache cabal files"-step would restore a cache from a key that does not include the C compiler, which means e.g. Clang could restore stuff built by GCC.

Also, the `restore-keys` key didn't even include the GHC version. This meant that -- in case of a cache miss for `key` -- a cache built by one GHC version could be pulled for a CI run for another GHC version.
@runeksvendsen runeksvendsen merged commit a847810 into master Jan 13, 2025
78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant