Skip to content

Conversation

@webdevred
Copy link
Owner

This PR improves CI workflows for building and testing the project across platforms and GHC versions. Key changes include:

  • Improved job naming: All jobs now have clear name fields for better visibility in the Actions UI.
  • Refined cache keys: Separate hashes for stack.yaml.lock and package.yaml improve cache hit accuracy.
  • Unified and clarified Cabal matrix job:
  • Tests with multiple GHC versions (9.4.7, 9.6.6, and latest) on Ubuntu.
  • Uses --allow-newer=base with latest to catch future incompatibilities early.
  • Enables the dump-ast flag to ensure internal tooling builds correctly (should we consider skipping validating this builds?)
  • Includes in-code comments explaining these decisions.
  • New Windows Cabal job: Adds build-with-cabal-windows, testing with the latest GHC and Cabal on Windows to future-proof the build pipeline across OSes.
  • Cosmetic improvements: YAML formatting, consistent run: >-, and removal of redundant paths in cache (e.g., ~/.ghcup).

Together, these changes strengthen cross-platform support, cache efficiency, and long-term maintainability of the Haskell CI configuration.

@webdevred webdevred force-pushed the yet-another-cicd-pr branch 18 times, most recently from 2997e93 to 071ad3b Compare July 28, 2025 20:43
- Removed separate `build-on-latest` job; its logic is now integrated into the matrix
- Enabled `dump-ast` flag across builds to verify internal tooling support
- Improved caching strategy by referencing resolved GHC version via `setup-ghc.outputs.ghc-version`
- Adds `build-with-cabal-windows` job targeting `windows-latest` runner
- Caches Cabal store and build artifacts to speed up CI
- Improve cache specificity by separating hash keys for stack.yaml.lock and
package.yaml
- Add intermediate restore keys
- Remove unnecessary path from cache
@webdevred webdevred force-pushed the yet-another-cicd-pr branch from 071ad3b to 962aba0 Compare July 28, 2025 20:57
@webdevred webdevred merged commit 842abe9 into master Jul 28, 2025
7 checks passed
@webdevred webdevred deleted the yet-another-cicd-pr branch July 28, 2025 21:08
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.

2 participants