88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11- # version: 0.15.20220822
11+ # version: 0.15.20230313
1212#
13- # REGENDATA ("0.15.20220822 ",["github","--config=cabal.haskell-ci","cabal.project"])
13+ # REGENDATA ("0.15.20230313 ",["github","--config=cabal.haskell-ci","cabal.project"])
1414#
1515name : Haskell-CI
1616on :
@@ -32,14 +32,19 @@ jobs:
3232 strategy :
3333 matrix :
3434 include :
35- - compiler : ghc-9.4 .1
35+ - compiler : ghc-9.6 .1
3636 compilerKind : ghc
37- compilerVersion : 9.4 .1
37+ compilerVersion : 9.6 .1
3838 setup-method : ghcup
3939 allow-failure : false
40- - compiler : ghc-9.2 .4
40+ - compiler : ghc-9.4 .4
4141 compilerKind : ghc
42- compilerVersion : 9.2.4
42+ compilerVersion : 9.4.4
43+ setup-method : ghcup
44+ allow-failure : false
45+ - compiler : ghc-9.2.7
46+ compilerKind : ghc
47+ compilerVersion : 9.2.7
4348 setup-method : ghcup
4449 allow-failure : false
4550 - compiler : ghc-9.0.2
@@ -98,15 +103,15 @@ jobs:
98103 curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
99104 chmod a+x "$HOME/.ghcup/bin/ghcup"
100105 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
101- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
106+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
102107 else
103108 apt-add-repository -y 'ppa:hvr/ghc'
104109 apt-get update
105110 apt-get install -y "$HCNAME"
106111 mkdir -p "$HOME/.ghcup/bin"
107112 curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
108113 chmod a+x "$HOME/.ghcup/bin/ghcup"
109- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
114+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
110115 fi
111116 env :
112117 HCKIND : ${{ matrix.compilerKind }}
@@ -124,13 +129,13 @@ jobs:
124129 echo "HC=$HC" >> "$GITHUB_ENV"
125130 echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
126131 echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
127- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
132+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
128133 else
129134 HC=$HCDIR/bin/$HCKIND
130135 echo "HC=$HC" >> "$GITHUB_ENV"
131136 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
132137 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
133- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
138+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
134139 fi
135140
136141 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -180,9 +185,9 @@ jobs:
180185 run : |
181186 $CABAL v2-update -v
182187 - name : cache (tools)
183- uses : actions/cache@v2
188+ uses : actions/cache/restore@v3
184189 with :
185- key : ${{ runner.os }}-${{ matrix.compiler }}-tools-2369439b
190+ key : ${{ runner.os }}-${{ matrix.compiler }}-tools-e3e6fd3b
186191 path : ~/.haskell-ci-tools
187192 - name : install cabal-plan
188193 run : |
@@ -206,8 +211,14 @@ jobs:
206211 run : |
207212 if [ $((HCNUMVER >= 80600 && 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
208213 if [ $((HCNUMVER >= 80600 && HCNUMVER < 90000)) -ne 0 ] ; then doctest --version ; fi
214+ - name : save cache (tools)
215+ uses : actions/cache/save@v3
216+ if : always()
217+ with :
218+ key : ${{ runner.os }}-${{ matrix.compiler }}-tools-e3e6fd3b
219+ path : ~/.haskell-ci-tools
209220 - name : checkout
210- uses : actions/checkout@v2
221+ uses : actions/checkout@v3
211222 with :
212223 path : source
213224 - name : initial cabal.project for sdist
@@ -293,8 +304,8 @@ jobs:
293304 run : |
294305 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
295306 cabal-plan
296- - name : cache
297- uses : actions/cache@v2
307+ - name : restore cache
308+ uses : actions/cache/restore@v3
298309 with :
299310 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
300311 path : ~/.cabal/store
@@ -334,8 +345,8 @@ jobs:
334345 if [ $((HCNUMVER >= 80600 && HCNUMVER < 90000)) -ne 0 ] ; then doctest -XHaskell2010 src ; fi
335346 - name : docspec
336347 run : |
337- if [ $((HCNUMVER >= 80000 )) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all ; fi
338- if [ $((HCNUMVER >= 80000 )) -ne 0 ] ; then cabal-docspec $ARG_COMPILER ; fi
348+ if [ $((HCNUMVER >= 80600 && HCNUMVER < 90600 )) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all ; fi
349+ if [ $((HCNUMVER >= 80600 && HCNUMVER < 90600 )) -ne 0 ] ; then cabal-docspec $ARG_COMPILER ; fi
339350 - name : cabal check
340351 run : |
341352 cd ${PKGDIR_bin} || false
@@ -358,7 +369,7 @@ jobs:
358369 ${CABAL} -vnormal check
359370 - name : haddock
360371 run : |
361- if [ $((HCNUMVER >= 80600)) -ne 0 ] ; then $CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all ; fi
372+ if [ $((HCNUMVER >= 80600)) -ne 0 ] ; then $CABAL v2-haddock --disable-documentation $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all ; fi
362373 - name : unconstrained build
363374 run : |
364375 rm -f cabal.project.local
@@ -394,3 +405,9 @@ jobs:
394405 run : |
395406 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='vec -distributive' --dependencies-only -j2 all
396407 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='vec -distributive' all
408+ - name : save cache
409+ uses : actions/cache/save@v3
410+ if : always()
411+ with :
412+ key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
413+ path : ~/.cabal/store
0 commit comments