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.20230321
12
12
#
13
- # REGENDATA ("0.15.20221225 ",["github","cabal.project"])
13
+ # REGENDATA ("0.15.20230321 ",["github","cabal.project"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -37,25 +37,30 @@ jobs:
37
37
compilerVersion : " 8.4"
38
38
setup-method : hvr-ppa
39
39
allow-failure : false
40
- - compiler : ghc-9.4 .1
40
+ - compiler : ghc-9.6 .1
41
41
compilerKind : ghc
42
- compilerVersion : 9.4 .1
42
+ compilerVersion : 9.6 .1
43
43
setup-method : ghcup
44
44
allow-failure : false
45
- - compiler : ghc-9.2 .4
45
+ - compiler : ghc-9.4 .4
46
46
compilerKind : ghc
47
- compilerVersion : 9.2.4
47
+ compilerVersion : 9.4.4
48
+ setup-method : ghcup
49
+ allow-failure : false
50
+ - compiler : ghc-9.2.7
51
+ compilerKind : ghc
52
+ compilerVersion : 9.2.7
48
53
setup-method : ghcup
49
54
allow-failure : false
50
55
- compiler : ghc-9.0.2
51
56
compilerKind : ghc
52
57
compilerVersion : 9.0.2
53
58
setup-method : ghcup
54
59
allow-failure : false
55
- - compiler : ghc-8.10.4
60
+ - compiler : ghc-8.10.7
56
61
compilerKind : ghc
57
- compilerVersion : 8.10.4
58
- setup-method : hvr-ppa
62
+ compilerVersion : 8.10.7
63
+ setup-method : ghcup
59
64
allow-failure : false
60
65
- compiler : ghc-8.8.4
61
66
compilerKind : ghc
@@ -123,10 +128,10 @@ jobs:
123
128
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
124
129
if [ "${{ matrix.setup-method }}" = ghcup ]; then
125
130
mkdir -p "$HOME/.ghcup/bin"
126
- curl -sL https://downloads.haskell.org/ghcup/0.1.18.0 /x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
131
+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
127
132
chmod a+x "$HOME/.ghcup/bin/ghcup"
128
133
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
129
- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
134
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
130
135
else
131
136
apt-add-repository -y 'ppa:hvr/ghc'
132
137
if [ $((GHCJSARITH)) -ne 0 ] ; then apt-add-repository -y 'ppa:hvr/ghcjs' ; fi
@@ -135,9 +140,9 @@ jobs:
135
140
apt-get update
136
141
if [ $((GHCJSARITH)) -ne 0 ] ; then apt-get install -y "$HCNAME" ghc-8.4.4 nodejs ; else apt-get install -y "$HCNAME" ; fi
137
142
mkdir -p "$HOME/.ghcup/bin"
138
- curl -sL https://downloads.haskell.org/ghcup/0.1.18.0 /x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
143
+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
139
144
chmod a+x "$HOME/.ghcup/bin/ghcup"
140
- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
145
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
141
146
fi
142
147
env :
143
148
HCKIND : ${{ matrix.compilerKind }}
@@ -156,13 +161,13 @@ jobs:
156
161
echo "HC=$HC" >> "$GITHUB_ENV"
157
162
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
158
163
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
159
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
164
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
160
165
else
161
166
HC=$HCDIR/bin/$HCKIND
162
167
echo "HC=$HC" >> "$GITHUB_ENV"
163
168
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
164
169
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
165
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
170
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
166
171
fi
167
172
168
173
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -231,7 +236,7 @@ jobs:
231
236
chmod a+x $HOME/.cabal/bin/cabal-docspec
232
237
cabal-docspec --version
233
238
- name : checkout
234
- uses : actions/checkout@v2
239
+ uses : actions/checkout@v3
235
240
with :
236
241
path : source
237
242
- name : initial cabal.project for sdist
@@ -266,8 +271,8 @@ jobs:
266
271
run : |
267
272
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
268
273
cabal-plan
269
- - name : cache
270
- uses : actions/cache@v2
274
+ - name : restore cache
275
+ uses : actions/cache/restore@v3
271
276
with :
272
277
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
273
278
path : ~/.cabal/store
@@ -295,7 +300,7 @@ jobs:
295
300
${CABAL} -vnormal check
296
301
- name : haddock
297
302
run : |
298
- if [ $((! GHCJSARITH && HCNUMVER >= 70800)) -ne 0 ] ; then $CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all ; fi
303
+ if [ $((! GHCJSARITH && HCNUMVER >= 70800)) -ne 0 ] ; then $CABAL v2-haddock --disable-documentation -- haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all ; fi
299
304
- name : unconstrained build
300
305
run : |
301
306
rm -f cabal.project.local
@@ -305,6 +310,12 @@ jobs:
305
310
rm -f cabal.project.local
306
311
- name : constraint set random-hashable
307
312
run : |
308
- if [ $((! GHCJSARITH && HCNUMVER >= 90400)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='hashable >=1.3.2.0' --constraint='hashable +random-initial-seed' --dependencies-only -j2 all ; fi
309
- if [ $((! GHCJSARITH && HCNUMVER >= 90400)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='hashable >=1.3.2.0' --constraint='hashable +random-initial-seed' all ; fi
310
- if [ $((! GHCJSARITH && HCNUMVER >= 90400)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='hashable >=1.3.2.0' --constraint='hashable +random-initial-seed' all ; fi
313
+ if [ $((! GHCJSARITH && HCNUMVER >= 90400 && HCNUMVER < 90600)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='hashable >=1.3.2.0' --constraint='hashable +random-initial-seed' --dependencies-only -j2 all ; fi
314
+ if [ $((! GHCJSARITH && HCNUMVER >= 90400 && HCNUMVER < 90600)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='hashable >=1.3.2.0' --constraint='hashable +random-initial-seed' all ; fi
315
+ if [ $((! GHCJSARITH && HCNUMVER >= 90400 && HCNUMVER < 90600)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='hashable >=1.3.2.0' --constraint='hashable +random-initial-seed' all ; fi
316
+ - name : save cache
317
+ uses : actions/cache/save@v3
318
+ if : always()
319
+ with :
320
+ key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
321
+ path : ~/.cabal/store
0 commit comments