88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11- # version: 0.15.20220808
11+ # version: 0.15.20230313
1212#
13- # REGENDATA ("0.15.20220808 ",["github","cabal.project"])
13+ # REGENDATA ("0.15.20230313 ",["github","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
@@ -103,15 +108,15 @@ jobs:
103108 curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
104109 chmod a+x "$HOME/.ghcup/bin/ghcup"
105110 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
106- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
111+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
107112 else
108113 apt-add-repository -y 'ppa:hvr/ghc'
109114 apt-get update
110115 apt-get install -y "$HCNAME"
111116 mkdir -p "$HOME/.ghcup/bin"
112117 curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
113118 chmod a+x "$HOME/.ghcup/bin/ghcup"
114- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
119+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
115120 fi
116121 env :
117122 HCKIND : ${{ matrix.compilerKind }}
@@ -129,13 +134,13 @@ jobs:
129134 echo "HC=$HC" >> "$GITHUB_ENV"
130135 echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
131136 echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
132- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
137+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
133138 else
134139 HC=$HCDIR/bin/$HCKIND
135140 echo "HC=$HC" >> "$GITHUB_ENV"
136141 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
137142 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
138- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
143+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
139144 fi
140145
141146 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -194,7 +199,7 @@ jobs:
194199 chmod a+x $HOME/.cabal/bin/cabal-plan
195200 cabal-plan --version
196201 - name : checkout
197- uses : actions/checkout@v2
202+ uses : actions/checkout@v3
198203 with :
199204 path : source
200205 - name : initial cabal.project for sdist
@@ -229,8 +234,8 @@ jobs:
229234 run : |
230235 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
231236 cabal-plan
232- - name : cache
233- uses : actions/cache@v2
237+ - name : restore cache
238+ uses : actions/cache/restore@v3
234239 with :
235240 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
236241 path : ~/.cabal/store
@@ -254,8 +259,14 @@ jobs:
254259 ${CABAL} -vnormal check
255260 - name : haddock
256261 run : |
257- $CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
262+ $CABAL v2-haddock --disable-documentation -- haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
258263 - name : unconstrained build
259264 run : |
260265 rm -f cabal.project.local
261266 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
267+ - name : save cache
268+ uses : actions/cache/save@v3
269+ if : always()
270+ with :
271+ key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
272+ path : ~/.cabal/store
0 commit comments