8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.19.20240416
11
+ # version: 0.19.20240420
12
12
#
13
- # REGENDATA ("0.19.20240416 ",["--config=cabal.haskell-ci","cabal.project"])
13
+ # REGENDATA ("0.19.20240420 ",["--config=cabal.haskell-ci","cabal.project"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -178,11 +178,6 @@ jobs:
178
178
- name : update cabal index
179
179
run : |
180
180
$CABAL v2-update -v
181
- - name : cache (tools)
182
- uses : actions/cache/restore@v3
183
- with :
184
- key : ${{ runner.os }}-${{ matrix.compiler }}-tools-d3d4cc06
185
- path : ~/.haskell-ci-tools
186
181
- name : install cabal-plan
187
182
run : |
188
183
mkdir -p $HOME/.cabal/bin
@@ -201,20 +196,8 @@ jobs:
201
196
rm -f cabal-docspec.xz
202
197
chmod a+x $HOME/.cabal/bin/cabal-docspec
203
198
cabal-docspec --version
204
- - name : install hlint
205
- run : |
206
- if [ $((HCNUMVER >= 90800 && HCNUMVER < 91000)) -ne 0 ] ; then HLINTVER=$(cd /tmp && (${CABAL} v2-install -v $ARG_COMPILER --dry-run hlint --constraint='hlint >=3.8 && <3.9' | perl -ne 'if (/\bhlint-(\d+(\.\d+)*)\b/) { print "$1"; last; }')); echo "HLint version $HLINTVER" ; fi
207
- if [ $((HCNUMVER >= 90800 && HCNUMVER < 91000)) -ne 0 ] ; then if [ ! -e $HOME/.haskell-ci-tools/hlint-$HLINTVER/hlint ]; then echo "Downloading HLint version $HLINTVER"; mkdir -p $HOME/.haskell-ci-tools; curl --write-out 'Status Code: %{http_code} Redirects: %{num_redirects} Total time: %{time_total} Total Dsize: %{size_download}\n' --silent --location --output $HOME/.haskell-ci-tools/hlint-$HLINTVER.tar.gz "https://github.com/ndmitchell/hlint/releases/download/v$HLINTVER/hlint-$HLINTVER-x86_64-linux.tar.gz"; tar -xzv -f $HOME/.haskell-ci-tools/hlint-$HLINTVER.tar.gz -C $HOME/.haskell-ci-tools; fi ; fi
208
- if [ $((HCNUMVER >= 90800 && HCNUMVER < 91000)) -ne 0 ] ; then mkdir -p $CABAL_DIR/bin && ln -sf "$HOME/.haskell-ci-tools/hlint-$HLINTVER/hlint" $CABAL_DIR/bin/hlint ; fi
209
- if [ $((HCNUMVER >= 90800 && HCNUMVER < 91000)) -ne 0 ] ; then hlint --version ; fi
210
- - name : save cache (tools)
211
- uses : actions/cache/save@v3
212
- if : always()
213
- with :
214
- key : ${{ runner.os }}-${{ matrix.compiler }}-tools-d3d4cc06
215
- path : ~/.haskell-ci-tools
216
199
- name : checkout
217
- uses : actions/checkout@v3
200
+ uses : actions/checkout@v4
218
201
with :
219
202
path : source
220
203
- name : initial cabal.project for sdist
@@ -265,7 +248,7 @@ jobs:
265
248
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
266
249
cabal-plan
267
250
- name : restore cache
268
- uses : actions/cache/restore@v3
251
+ uses : actions/cache/restore@v4
269
252
with :
270
253
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
271
254
path : ~/.cabal/store
@@ -284,11 +267,6 @@ jobs:
284
267
run : |
285
268
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all
286
269
cabal-docspec $ARG_COMPILER
287
- - name : hlint
288
- run : |
289
- if [ $((HCNUMVER >= 90800 && HCNUMVER < 91000)) -ne 0 ] ; then (cd ${PKGDIR_lens} && hlint -XHaskell2010 src) ; fi
290
- if [ $((HCNUMVER >= 90800 && HCNUMVER < 91000)) -ne 0 ] ; then (cd ${PKGDIR_lens_examples} && hlint -XHaskell2010 .) ; fi
291
- if [ $((HCNUMVER >= 90800 && HCNUMVER < 91000)) -ne 0 ] ; then (cd ${PKGDIR_lens_properties} && hlint -XHaskell2010 src) ; fi
292
270
- name : cabal check
293
271
run : |
294
272
cd ${PKGDIR_lens} || false
@@ -301,7 +279,7 @@ jobs:
301
279
run : |
302
280
if [ $((HCNUMVER >= 80800)) -ne 0 ] ; then $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all ; fi
303
281
- name : save cache
304
- uses : actions/cache/save@v3
282
+ uses : actions/cache/save@v4
305
283
if : always()
306
284
with :
307
285
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments