8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.14.3
11
+ # version: 0.16.5
12
12
#
13
- # REGENDATA ("0.14.3 ",["github","cabal.project"])
13
+ # REGENDATA ("0.16.5 ",["github","cabal.project"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
23
23
jobs :
24
24
linux :
25
25
name : Haskell-CI - Linux - ${{ matrix.compiler }}
26
- runs-on : ubuntu-18 .04
26
+ runs-on : ubuntu-20 .04
27
27
timeout-minutes :
28
28
60
29
29
container :
32
32
strategy :
33
33
matrix :
34
34
include :
35
- - compiler : ghc-9.2 .2
35
+ - compiler : ghc-9.6 .2
36
36
compilerKind : ghc
37
- compilerVersion : 9.2.2
37
+ compilerVersion : 9.6.2
38
+ setup-method : ghcup
39
+ allow-failure : false
40
+ - compiler : ghc-9.4.5
41
+ compilerKind : ghc
42
+ compilerVersion : 9.4.5
43
+ setup-method : ghcup
44
+ allow-failure : false
45
+ - compiler : ghc-9.2.8
46
+ compilerKind : ghc
47
+ compilerVersion : 9.2.8
38
48
setup-method : ghcup
39
49
allow-failure : false
40
50
- compiler : ghc-9.0.2
@@ -100,18 +110,18 @@ jobs:
100
110
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
101
111
if [ "${{ matrix.setup-method }}" = ghcup ]; then
102
112
mkdir -p "$HOME/.ghcup/bin"
103
- curl -sL https://downloads.haskell.org/ghcup/0.1.17.5 /x86_64-linux-ghcup-0.1.17.5 > "$HOME/.ghcup/bin/ghcup"
113
+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
104
114
chmod a+x "$HOME/.ghcup/bin/ghcup"
105
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
106
- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
115
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
116
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
107
117
else
108
118
apt-add-repository -y 'ppa:hvr/ghc'
109
119
apt-get update
110
120
apt-get install -y "$HCNAME"
111
121
mkdir -p "$HOME/.ghcup/bin"
112
- curl -sL https://downloads.haskell.org/ghcup/0.1.17.5 /x86_64-linux-ghcup-0.1.17.5 > "$HOME/.ghcup/bin/ghcup"
122
+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
113
123
chmod a+x "$HOME/.ghcup/bin/ghcup"
114
- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
124
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
115
125
fi
116
126
env :
117
127
HCKIND : ${{ matrix.compilerKind }}
@@ -129,13 +139,13 @@ jobs:
129
139
echo "HC=$HC" >> "$GITHUB_ENV"
130
140
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
131
141
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
132
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
142
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
133
143
else
134
144
HC=$HCDIR/bin/$HCKIND
135
145
echo "HC=$HC" >> "$GITHUB_ENV"
136
146
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
137
147
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
138
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
148
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
139
149
fi
140
150
141
151
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -187,14 +197,14 @@ jobs:
187
197
- name : install cabal-plan
188
198
run : |
189
199
mkdir -p $HOME/.cabal/bin
190
- curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.6.2 .0/cabal-plan-0.6.2 .0-x86_64-linux.xz > cabal-plan.xz
191
- echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
200
+ curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.7.3 .0/cabal-plan-0.7.3 .0-x86_64-linux.xz > cabal-plan.xz
201
+ echo 'f62ccb2971567a5f638f2005ad3173dba14693a45154c1508645c52289714cb2 cabal-plan.xz' | sha256sum -c -
192
202
xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
193
203
rm -f cabal-plan.xz
194
204
chmod a+x $HOME/.cabal/bin/cabal-plan
195
205
cabal-plan --version
196
206
- name : checkout
197
- uses : actions/checkout@v2
207
+ uses : actions/checkout@v3
198
208
with :
199
209
path : source
200
210
- name : initial cabal.project for sdist
@@ -229,8 +239,8 @@ jobs:
229
239
run : |
230
240
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
231
241
cabal-plan
232
- - name : cache
233
- uses : actions/cache@v2
242
+ - name : restore cache
243
+ uses : actions/cache/restore@v3
234
244
with :
235
245
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
236
246
path : ~/.cabal/store
@@ -254,7 +264,7 @@ jobs:
254
264
${CABAL} -vnormal check
255
265
- name : haddock
256
266
run : |
257
- $CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
267
+ $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
258
268
- name : unconstrained build
259
269
run : |
260
270
rm -f cabal.project.local
@@ -267,3 +277,9 @@ jobs:
267
277
if [ $((HCNUMVER >= 80600)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='mtl ^>=2.3' --dependencies-only -j2 all ; fi
268
278
if [ $((HCNUMVER >= 80600)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='mtl ^>=2.3' all ; fi
269
279
if [ $((HCNUMVER >= 80600)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='mtl ^>=2.3' all ; fi
280
+ - name : save cache
281
+ uses : actions/cache/save@v3
282
+ if : always()
283
+ with :
284
+ key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
285
+ path : ~/.cabal/store
0 commit comments