88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11- # version: 0.15.20220808
11+ # version: 0.15.20230312
1212#
13- # REGENDATA ("0.15.20220808 ",["github","cabal.project"])
13+ # REGENDATA ("0.15.20230312 ",["github","cabal.project"])
1414#
1515name : Haskell-CI
1616on :
@@ -32,25 +32,30 @@ 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
4651 compilerKind : ghc
4752 compilerVersion : 9.0.2
4853 setup-method : ghcup
4954 allow-failure : false
50- - compiler : ghc-8.10.4
55+ - compiler : ghc-8.10.7
5156 compilerKind : ghc
52- compilerVersion : 8.10.4
53- setup-method : hvr-ppa
57+ compilerVersion : 8.10.7
58+ setup-method : ghcup
5459 allow-failure : false
5560 - compiler : ghc-8.8.4
5661 compilerKind : ghc
@@ -118,15 +123,15 @@ jobs:
118123 curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
119124 chmod a+x "$HOME/.ghcup/bin/ghcup"
120125 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
121- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
126+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
122127 else
123128 apt-add-repository -y 'ppa:hvr/ghc'
124129 apt-get update
125130 apt-get install -y "$HCNAME"
126131 mkdir -p "$HOME/.ghcup/bin"
127132 curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
128133 chmod a+x "$HOME/.ghcup/bin/ghcup"
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 fi
131136 env :
132137 HCKIND : ${{ matrix.compilerKind }}
@@ -144,13 +149,13 @@ jobs:
144149 echo "HC=$HC" >> "$GITHUB_ENV"
145150 echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
146151 echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
147- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
152+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
148153 else
149154 HC=$HCDIR/bin/$HCKIND
150155 echo "HC=$HC" >> "$GITHUB_ENV"
151156 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
152157 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
153- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
158+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
154159 fi
155160
156161 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -209,7 +214,7 @@ jobs:
209214 chmod a+x $HOME/.cabal/bin/cabal-plan
210215 cabal-plan --version
211216 - name : checkout
212- uses : actions/checkout@v2
217+ uses : actions/checkout@v3
213218 with :
214219 path : source
215220 - name : initial cabal.project for sdist
@@ -244,8 +249,8 @@ jobs:
244249 run : |
245250 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
246251 cabal-plan
247- - name : cache
248- uses : actions/cache@v2
252+ - name : restore cache
253+ uses : actions/cache/restore@v3
249254 with :
250255 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
251256 path : ~/.cabal/store
@@ -266,8 +271,14 @@ jobs:
266271 ${CABAL} -vnormal check
267272 - name : haddock
268273 run : |
269- $CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
274+ $CABAL v2-haddock --disable-documentation -- haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
270275 - name : unconstrained build
271276 run : |
272277 rm -f cabal.project.local
273278 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
279+ - name : save cache
280+ uses : actions/cache/save@v3
281+ if : always()
282+ with :
283+ key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
284+ path : ~/.cabal/store
0 commit comments