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

Github Action improvements #624

Merged
merged 2 commits into from
Feb 27, 2024
Merged

Github Action improvements #624

merged 2 commits into from
Feb 27, 2024

Conversation

erikd
Copy link
Contributor

@erikd erikd commented Feb 25, 2024

Changelog

- description: Github Action improvements
  type:
    - maintenance    # not directly related to the code

Context

Improve and simplify GHA.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

@erikd erikd marked this pull request as draft February 25, 2024 04:02
@erikd erikd force-pushed the erikd/gha-tweaking branch 2 times, most recently from 9db8dbe to d567e73 Compare February 25, 2024 05:21
@erikd erikd marked this pull request as ready for review February 25, 2024 06:06
@erikd erikd changed the title WIP: Github Action improvements Github Action improvements Feb 25, 2024
@erikd erikd requested review from carbolymer and smelc February 25, 2024 09:03
@erikd erikd force-pushed the erikd/gha-tweaking branch from d567e73 to ad2394d Compare February 27, 2024 00:44
@erikd erikd self-assigned this Feb 27, 2024
  * Make it more like `cardano-base`.
  * Drop the ad-hoc caching in favour of Cabal caching.
@erikd erikd force-pushed the erikd/gha-tweaking branch from ad2394d to fdbf565 Compare February 27, 2024 01:33
@erikd erikd enabled auto-merge February 27, 2024 02:19
@erikd erikd added this pull request to the merge queue Feb 27, 2024
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.
@erikd erikd removed this pull request from the merge queue due to a manual request Feb 27, 2024
@erikd erikd force-pushed the erikd/gha-tweaking branch from fdbf565 to 924711b Compare February 27, 2024 04:32
@erikd erikd added this pull request to the merge queue Feb 27, 2024
Merged via the queue into main with commit b406b35 Feb 27, 2024
17 checks passed
@erikd erikd deleted the erikd/gha-tweaking branch February 27, 2024 04:46
${{ steps.setup-haskell.outputs.cabal-store }}
dist-newstyle
key: cache-${{ env.CABAL_CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('dependencies.txt') }}
restore-keys: |
Copy link
Contributor

@carbolymer carbolymer Feb 27, 2024

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

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.

3 participants