Skip to content
Snippets Groups Projects
Unverified Commit f2999b3c authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

Fix #9815: fix caching for quick-jobs CI (XDG, cache keys) (backport #9845) (#10041)

* Fix #9815: switch quick-jobs CI to XDG

Fix #9815:
- Cache `~/.local/state/cabal` instead of `~/.cabal/store`
- `~/.local/bin` is used instead of `~/.cabal/bin` and is already in the PATH
  (verify this by calling `alex` after installing it)

As I am passing by:
- bump cache action to v4
- double-quote `$USER` to keep actionlint happy
- move `if` from shell-level to job-level
- allow newest `alex`

(cherry picked from commit e916cb59)

* CI quick-jobs: use preinstalled GHC and Cabal

(cherry picked from commit c209a827)

* Makefile: remove dead target 'lexer', use '.PHONY' systematically

The `lexer` target was removed in
https://github.com/haskell/cabal/pull/8980



(cherry picked from commit e6000878)

* CI "Meta checks": correct cache key

(cherry picked from commit 56426e4f)

* CI "Meta checks": print Haskell versions

(cherry picked from commit 9a311bd8)

* CI "Doctest Cabal": daily refresh of cache

(cherry picked from commit ba6f6ffc)

* CI "Check Field Syntax Reference": correct cache key

(cherry picked from commit 5949e3fd)

* Update generated Cabal/src/Distribution/Simple/Build/Macros/Z.hs

Not sure why this was not up to date on master and still CI passed.
Maybe the content of this file is dependent on the GHC version we are
using to build the `get-cabal-macros` tool?

(cherry picked from commit 947860a8)

* CI quick-jobs: entirely wipe ghcup directory rights workaround

(cherry picked from commit 5aa8afd4)

* !fixup

---------

Co-authored-by: default avatarAndreas Abel <andreas.abel@ifi.lmu.de>
Co-authored-by: default avatarArtem Pelenitsyn <a.pelenitsyn@gmail.com>
parent ae8776e7
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment