8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.15.20221225
11
+ # version: 0.15.20230313
12
12
#
13
- # REGENDATA ("0.15.20221225 ",["github","--config=cabal.haskell-ci","lattices.cabal"])
13
+ # REGENDATA ("0.15.20230313 ",["github","--config=cabal.haskell-ci","lattices.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
32
32
strategy :
33
33
matrix :
34
34
include :
35
+ - compiler : ghc-9.6.1
36
+ compilerKind : ghc
37
+ compilerVersion : 9.6.1
38
+ setup-method : ghcup
39
+ allow-failure : false
35
40
- compiler : ghc-9.4.4
36
41
compilerKind : ghc
37
42
compilerVersion : 9.4.4
@@ -103,15 +108,15 @@ jobs:
103
108
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
104
109
chmod a+x "$HOME/.ghcup/bin/ghcup"
105
110
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
106
- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
111
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
107
112
else
108
113
apt-add-repository -y 'ppa:hvr/ghc'
109
114
apt-get update
110
115
apt-get install -y "$HCNAME"
111
116
mkdir -p "$HOME/.ghcup/bin"
112
117
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
113
118
chmod a+x "$HOME/.ghcup/bin/ghcup"
114
- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
119
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
115
120
fi
116
121
env :
117
122
HCKIND : ${{ matrix.compilerKind }}
@@ -129,13 +134,13 @@ jobs:
129
134
echo "HC=$HC" >> "$GITHUB_ENV"
130
135
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
131
136
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
132
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
137
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
133
138
else
134
139
HC=$HCDIR/bin/$HCKIND
135
140
echo "HC=$HC" >> "$GITHUB_ENV"
136
141
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
137
142
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
138
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
143
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
139
144
fi
140
145
141
146
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -185,7 +190,7 @@ jobs:
185
190
run : |
186
191
$CABAL v2-update -v
187
192
- name : cache (tools)
188
- uses : actions/cache@v2
193
+ uses : actions/cache/restore@v3
189
194
with :
190
195
key : ${{ runner.os }}-${{ matrix.compiler }}-tools-4095ff06
191
196
path : ~/.haskell-ci-tools
@@ -211,8 +216,14 @@ jobs:
211
216
run : |
212
217
if [ $((HCNUMVER >= 80000 && HCNUMVER < 90000)) -ne 0 ] ; then $CABAL --store-dir=$HOME/.haskell-ci-tools/store v2-install $ARG_COMPILER --ignore-project -j2 doctest --constraint='doctest ^>=0.20' ; fi
213
218
if [ $((HCNUMVER >= 80000 && HCNUMVER < 90000)) -ne 0 ] ; then doctest --version ; fi
219
+ - name : save cache (tools)
220
+ uses : actions/cache/save@v3
221
+ if : always()
222
+ with :
223
+ key : ${{ runner.os }}-${{ matrix.compiler }}-tools-4095ff06
224
+ path : ~/.haskell-ci-tools
214
225
- name : checkout
215
- uses : actions/checkout@v2
226
+ uses : actions/checkout@v3
216
227
with :
217
228
path : source
218
229
- name : initial cabal.project for sdist
@@ -247,8 +258,8 @@ jobs:
247
258
run : |
248
259
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
249
260
cabal-plan
250
- - name : cache
251
- uses : actions/cache@v2
261
+ - name : restore cache
262
+ uses : actions/cache/restore@v3
252
263
with :
253
264
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
254
265
path : ~/.cabal/store
@@ -280,7 +291,7 @@ jobs:
280
291
${CABAL} -vnormal check
281
292
- name : haddock
282
293
run : |
283
- $CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
294
+ $CABAL v2-haddock --disable-documentation -- haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
284
295
- name : unconstrained build
285
296
run : |
286
297
rm -f cabal.project.local
@@ -292,3 +303,9 @@ jobs:
292
303
run : |
293
304
if [ $((HCNUMVER >= 80800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='transformers ^>=0.6' --dependencies-only -j2 all ; fi
294
305
if [ $((HCNUMVER >= 80800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='transformers ^>=0.6' all ; fi
306
+ - name : save cache
307
+ uses : actions/cache/save@v3
308
+ if : always()
309
+ with :
310
+ key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
311
+ path : ~/.cabal/store
0 commit comments