88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11- # version: 0.15.20221225
11+ # version: 0.15.20230321
1212#
13- # REGENDATA ("0.15.20221225 ",["github","cabal.project"])
13+ # REGENDATA ("0.15.20230321 ",["github","cabal.project"])
1414#
1515name : Haskell-CI
1616on :
@@ -37,25 +37,30 @@ jobs:
3737 compilerVersion : " 8.4"
3838 setup-method : hvr-ppa
3939 allow-failure : false
40- - compiler : ghc-9.4 .1
40+ - compiler : ghc-9.6 .1
4141 compilerKind : ghc
42- compilerVersion : 9.4 .1
42+ compilerVersion : 9.6 .1
4343 setup-method : ghcup
4444 allow-failure : false
45- - compiler : ghc-9.2 .4
45+ - compiler : ghc-9.4 .4
4646 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
4853 setup-method : ghcup
4954 allow-failure : false
5055 - compiler : ghc-9.0.2
5156 compilerKind : ghc
5257 compilerVersion : 9.0.2
5358 setup-method : ghcup
5459 allow-failure : false
55- - compiler : ghc-8.10.4
60+ - compiler : ghc-8.10.7
5661 compilerKind : ghc
57- compilerVersion : 8.10.4
58- setup-method : hvr-ppa
62+ compilerVersion : 8.10.7
63+ setup-method : ghcup
5964 allow-failure : false
6065 - compiler : ghc-8.8.4
6166 compilerKind : ghc
@@ -123,10 +128,10 @@ jobs:
123128 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
124129 if [ "${{ matrix.setup-method }}" = ghcup ]; then
125130 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"
127132 chmod a+x "$HOME/.ghcup/bin/ghcup"
128133 "$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)
130135 else
131136 apt-add-repository -y 'ppa:hvr/ghc'
132137 if [ $((GHCJSARITH)) -ne 0 ] ; then apt-add-repository -y 'ppa:hvr/ghcjs' ; fi
@@ -135,9 +140,9 @@ jobs:
135140 apt-get update
136141 if [ $((GHCJSARITH)) -ne 0 ] ; then apt-get install -y "$HCNAME" ghc-8.4.4 nodejs ; else apt-get install -y "$HCNAME" ; fi
137142 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"
139144 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)
141146 fi
142147 env :
143148 HCKIND : ${{ matrix.compilerKind }}
@@ -156,13 +161,13 @@ jobs:
156161 echo "HC=$HC" >> "$GITHUB_ENV"
157162 echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
158163 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"
160165 else
161166 HC=$HCDIR/bin/$HCKIND
162167 echo "HC=$HC" >> "$GITHUB_ENV"
163168 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
164169 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"
166171 fi
167172
168173 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:
231236 chmod a+x $HOME/.cabal/bin/cabal-docspec
232237 cabal-docspec --version
233238 - name : checkout
234- uses : actions/checkout@v2
239+ uses : actions/checkout@v3
235240 with :
236241 path : source
237242 - name : initial cabal.project for sdist
@@ -266,8 +271,8 @@ jobs:
266271 run : |
267272 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
268273 cabal-plan
269- - name : cache
270- uses : actions/cache@v2
274+ - name : restore cache
275+ uses : actions/cache/restore@v3
271276 with :
272277 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
273278 path : ~/.cabal/store
@@ -295,7 +300,7 @@ jobs:
295300 ${CABAL} -vnormal check
296301 - name : haddock
297302 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
299304 - name : unconstrained build
300305 run : |
301306 rm -f cabal.project.local
@@ -305,6 +310,12 @@ jobs:
305310 rm -f cabal.project.local
306311 - name : constraint set random-hashable
307312 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