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","postgresql-libpq.cabal"])
13+ # REGENDATA ("0.15.20230321 ",["github","postgresql-libpq.cabal"])
1414#
1515name : Haskell-CI
1616on :
@@ -38,14 +38,19 @@ jobs:
3838 strategy :
3939 matrix :
4040 include :
41- - compiler : ghc-9.4.2
41+ - compiler : ghc-9.6.1
4242 compilerKind : ghc
43- compilerVersion : 9.4.2
43+ compilerVersion : 9.6.1
4444 setup-method : ghcup
4545 allow-failure : false
46- - compiler : ghc-9.2 .4
46+ - compiler : ghc-9.4 .4
4747 compilerKind : ghc
48- compilerVersion : 9.2.4
48+ compilerVersion : 9.4.4
49+ setup-method : ghcup
50+ allow-failure : false
51+ - compiler : ghc-9.2.7
52+ compilerKind : ghc
53+ compilerVersion : 9.2.7
4954 setup-method : ghcup
5055 allow-failure : false
5156 - compiler : ghc-9.0.2
@@ -76,18 +81,18 @@ jobs:
7681 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
7782 if [ "${{ matrix.setup-method }}" = ghcup ]; then
7883 mkdir -p "$HOME/.ghcup/bin"
79- curl -sL https://downloads.haskell.org/ghcup/0.1.18.0 /x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
84+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
8085 chmod a+x "$HOME/.ghcup/bin/ghcup"
8186 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
82- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
87+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
8388 else
8489 apt-add-repository -y 'ppa:hvr/ghc'
8590 apt-get update
8691 apt-get install -y "$HCNAME"
8792 mkdir -p "$HOME/.ghcup/bin"
88- curl -sL https://downloads.haskell.org/ghcup/0.1.18.0 /x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
93+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
8994 chmod a+x "$HOME/.ghcup/bin/ghcup"
90- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
95+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
9196 fi
9297 env :
9398 HCKIND : ${{ matrix.compilerKind }}
@@ -105,13 +110,13 @@ jobs:
105110 echo "HC=$HC" >> "$GITHUB_ENV"
106111 echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
107112 echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
108- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
113+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
109114 else
110115 HC=$HCDIR/bin/$HCKIND
111116 echo "HC=$HC" >> "$GITHUB_ENV"
112117 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
113118 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
114- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
119+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
115120 fi
116121
117122 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -170,7 +175,7 @@ jobs:
170175 chmod a+x $HOME/.cabal/bin/cabal-plan
171176 cabal-plan --version
172177 - name : checkout
173- uses : actions/checkout@v2
178+ uses : actions/checkout@v3
174179 with :
175180 path : source
176181 - name : initial cabal.project for sdist
@@ -205,8 +210,8 @@ jobs:
205210 run : |
206211 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
207212 cabal-plan
208- - name : cache
209- uses : actions/cache@v2
213+ - name : restore cache
214+ uses : actions/cache/restore@v3
210215 with :
211216 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
212217 path : ~/.cabal/store
@@ -230,8 +235,14 @@ jobs:
230235 ${CABAL} -vnormal check
231236 - name : haddock
232237 run : |
233- $CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
238+ $CABAL v2-haddock --disable-documentation $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
234239 - name : unconstrained build
235240 run : |
236241 rm -f cabal.project.local
237242 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
243+ - name : save cache
244+ uses : actions/cache/save@v3
245+ if : always()
246+ with :
247+ key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
248+ path : ~/.cabal/store
0 commit comments