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
20
23
runs-on : ubuntu-latest
24
+ <<<<<<< HEAD
21
25
# This job is not run in a container, any recent GHC should be fine
22
26
steps :
23
27
- name : Set PATH
24
28
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#adding-a-system-path
29
+ =======
30
+ env :
31
+ cabal_build : >-
32
+ cabal build --builddir=dist-newstyle-meta --project-file=cabal.meta.project
33
+ gen-cabal-macros
34
+ gen-paths-module
35
+ gen-spdx
36
+ gen-spdx-exc
37
+ steps :
38
+ - name : ghcup
39
+ run : |
40
+ ghcup --version
41
+ ghcup config set cache true
42
+ ghcup install ghc $GHC_FOR_QUICK_JOBS
43
+ ghcup set ghc $GHC_FOR_QUICK_JOBS
44
+ - name : Haskell versions
45
+ >>>>>>> 305033b30 (ci: Fix quick-jobs GHC version to 9.6 (#10026))
25
46
run : |
26
47
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
27
48
- uses : actions/cache@v3
62
83
name : Doctest Cabal
63
84
runs-on : ubuntu-latest
64
85
steps :
86
+ <<<<<<< HEAD
65
87
- name : Set PATH
88
+ =======
89
+ - name : ghcup
90
+ run : |
91
+ ghcup --version
92
+ ghcup config set cache true
93
+ ghcup install ghc $GHC_FOR_QUICK_JOBS
94
+ ghcup set ghc $GHC_FOR_QUICK_JOBS
95
+ - name : Haskell versions
96
+ run : |
97
+ ghc --version
98
+ cabal --version
99
+ # It is complicated to get a proper cache key for the dependencies of a package
100
+ # (here: doctest) that we just `cabal install`.
101
+ # So, as a heuristics we update the cache once per day.
102
+ # Updating it with each run would be an alternative, but we a short of cache space,
103
+ # and this would generate too many new caches.
104
+ - name : Use date as cache key
105
+ >>>>>>> 305033b30 (ci: Fix quick-jobs GHC version to 9.6 (#10026))
66
106
run : |
67
107
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
68
108
- uses : actions/cache@v3
96
136
name : Check Field Syntax Reference
97
137
runs-on : ubuntu-latest
98
138
steps :
139
+ <<<<<<< HEAD
99
140
- name : Set PATH
100
141
run : |
101
142
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
@@ -113,12 +154,23 @@ jobs:
113
154
sudo chown -R $USER /usr/local/.ghcup
114
155
sudo chmod -R 777 /usr/local/.ghcup
115
156
fi
157
+ =======
158
+ >>>>>>> 305033b30 (ci: Fix quick-jobs GHC version to 9.6 (#10026))
116
159
- name : ghcup
117
160
run : |
118
161
ghcup --version
119
162
ghcup config set cache true
163
+ <<<<<<< HEAD
120
164
ghcup install ghc --set recommended
121
165
ghcup install cabal --set latest
166
+ =======
167
+ ghcup install ghc $GHC_FOR_QUICK_JOBS
168
+ ghcup set ghc $GHC_FOR_QUICK_JOBS
169
+ - name : Haskell versions
170
+ run : |
171
+ ghc --version
172
+ cabal --version
173
+ >>>>>>> 305033b30 (ci: Fix quick-jobs GHC version to 9.6 (#10026))
122
174
- name : Update Hackage index
123
175
run : cabal v2-update
124
176
- uses : actions/checkout@v4
@@ -128,15 +180,27 @@ jobs:
128
180
name : Check Release Project
129
181
runs-on : ubuntu-latest
130
182
steps :
183
+ <<<<<<< HEAD
131
184
- name : Set PATH
132
185
run : |
133
186
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
187
+ =======
188
+ >>>>>>> 305033b30 (ci: Fix quick-jobs GHC version to 9.6 (#10026))
134
189
- name : ghcup
135
190
run : |
136
191
ghcup --version
137
192
ghcup config set cache true
193
+ <<<<<<< HEAD
138
194
ghcup install ghc --set recommended
139
195
ghcup install cabal --set latest
196
+ =======
197
+ ghcup install ghc $GHC_FOR_QUICK_JOBS
198
+ ghcup set ghc $GHC_FOR_QUICK_JOBS
199
+ - name : Haskell versions
200
+ run : |
201
+ ghc --version
202
+ cabal --version
203
+ >>>>>>> 305033b30 (ci: Fix quick-jobs GHC version to 9.6 (#10026))
140
204
- name : Update Hackage Index
141
205
run : cabal v2-update
142
206
- uses : actions/checkout@v4
0 commit comments