14
14
types :
15
15
- created
16
16
17
+ env :
18
+ GHC_FOR_QUICK_JOBS : 9.6.5
19
+
17
20
jobs :
18
21
meta :
19
22
name : Meta checks
@@ -25,15 +28,13 @@ jobs:
25
28
gen-paths-module
26
29
gen-spdx
27
30
gen-spdx-exc
28
- # This job is not run in a container, any recent GHC should be fine
29
31
steps :
30
- # SKIP installation of ghc and cabal and use the preinstalled versions.
31
- # - name: ghcup
32
- # run: |
33
- # ghcup --version
34
- # ghcup config set cache true
35
- # ghcup install ghc recommended
36
- # ghcup set ghc recommended
32
+ - name : ghcup
33
+ run : |
34
+ ghcup --version
35
+ ghcup config set cache true
36
+ ghcup install ghc $GHC_FOR_QUICK_JOBS
37
+ ghcup set ghc $GHC_FOR_QUICK_JOBS
37
38
- name : Haskell versions
38
39
run : |
39
40
ghc --version
71
72
name : Doctest Cabal
72
73
runs-on : ubuntu-latest
73
74
steps :
75
+ - name : ghcup
76
+ run : |
77
+ ghcup --version
78
+ ghcup config set cache true
79
+ ghcup install ghc $GHC_FOR_QUICK_JOBS
80
+ ghcup set ghc $GHC_FOR_QUICK_JOBS
81
+ - name : Haskell versions
82
+ run : |
83
+ ghc --version
84
+ cabal --version
74
85
# It is complicated to get a proper cache key for the dependencies of a package
75
86
# (here: doctest) that we just `cabal install`.
76
87
# So, as a heuristics we update the cache once per day.
@@ -106,6 +117,16 @@ jobs:
106
117
env :
107
118
cabal_build : cabal build buildinfo-reference-generator
108
119
steps :
120
+ - name : ghcup
121
+ run : |
122
+ ghcup --version
123
+ ghcup config set cache true
124
+ ghcup install ghc $GHC_FOR_QUICK_JOBS
125
+ ghcup set ghc $GHC_FOR_QUICK_JOBS
126
+ - name : Haskell versions
127
+ run : |
128
+ ghc --version
129
+ cabal --version
109
130
- name : Update Hackage index
110
131
run : cabal v2-update
111
132
- uses : actions/checkout@v4
@@ -133,6 +154,16 @@ jobs:
133
154
name : Check Release Project
134
155
runs-on : ubuntu-latest
135
156
steps :
157
+ - name : ghcup
158
+ run : |
159
+ ghcup --version
160
+ ghcup config set cache true
161
+ ghcup install ghc $GHC_FOR_QUICK_JOBS
162
+ ghcup set ghc $GHC_FOR_QUICK_JOBS
163
+ - name : Haskell versions
164
+ run : |
165
+ ghc --version
166
+ cabal --version
136
167
- name : Update Hackage Index
137
168
run : cabal v2-update
138
169
- uses : actions/checkout@v4
0 commit comments