88# 
99#  For more information, see https://github.com/haskell-CI/haskell-ci
1010# 
11- #  version: 0.14.1 
11+ #  version: 0.15.20230321 
1212# 
13- #  REGENDATA ("0.14.1 ",["github","HTTP.cabal"])
13+ #  REGENDATA ("0.15.20230321 ",["github","HTTP.cabal"])
1414# 
1515name : Haskell-CI 
1616on :
1919jobs :
2020  linux :
2121    name : Haskell-CI - Linux - ${{ matrix.compiler }} 
22-     runs-on : ubuntu-18 .04 
22+     runs-on : ubuntu-20 .04 
2323    timeout-minutes :
2424      60 
2525    container :
@@ -28,15 +28,25 @@ jobs:
2828    strategy :
2929      matrix :
3030        include :
31-           - compiler : ghc-9.2 .1 
31+           - compiler : ghc-9.6 .1 
3232            compilerKind : ghc 
33-             compilerVersion : 9.2 .1 
33+             compilerVersion : 9.6 .1 
3434            setup-method : ghcup 
3535            allow-failure : false 
36-           - compiler : ghc-9.0.1  
36+           - compiler : ghc-9.4.4  
3737            compilerKind : ghc 
38-             compilerVersion : 9.0.1 
39-             setup-method : hvr-ppa 
38+             compilerVersion : 9.4.4 
39+             setup-method : ghcup 
40+             allow-failure : false 
41+           - compiler : ghc-9.2.7 
42+             compilerKind : ghc 
43+             compilerVersion : 9.2.7 
44+             setup-method : ghcup 
45+             allow-failure : false 
46+           - compiler : ghc-9.0.2 
47+             compilerKind : ghc 
48+             compilerVersion : 9.0.2 
49+             setup-method : ghcup 
4050            allow-failure : false 
4151          - compiler : ghc-8.10.7 
4252            compilerKind : ghc 
@@ -91,18 +101,18 @@ jobs:
91101          apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 
92102          if [ "${{ matrix.setup-method }}" = ghcup ]; then 
93103            mkdir -p "$HOME/.ghcup/bin" 
94-             curl -sL https://downloads.haskell.org/ghcup/0.1.17.3 /x86_64-linux-ghcup-0.1.17.3  > "$HOME/.ghcup/bin/ghcup" 
104+             curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2  > "$HOME/.ghcup/bin/ghcup" 
95105            chmod a+x "$HOME/.ghcup/bin/ghcup" 
96-             "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" 
97-             "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0  
106+             "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)  
107+             "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)  
98108          else 
99109            apt-add-repository -y 'ppa:hvr/ghc' 
100110            apt-get update 
101111            apt-get install -y "$HCNAME" 
102112            mkdir -p "$HOME/.ghcup/bin" 
103-             curl -sL https://downloads.haskell.org/ghcup/0.1.17.3 /x86_64-linux-ghcup-0.1.17.3  > "$HOME/.ghcup/bin/ghcup" 
113+             curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2  > "$HOME/.ghcup/bin/ghcup" 
104114            chmod a+x "$HOME/.ghcup/bin/ghcup" 
105-             "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0  
115+             "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)  
106116          fi 
107117         env :
108118          HCKIND : ${{ matrix.compilerKind }} 
@@ -120,13 +130,13 @@ jobs:
120130            echo "HC=$HC" >> "$GITHUB_ENV" 
121131            echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV" 
122132            echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV" 
123-             echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV" 
133+             echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV" 
124134          else 
125135            HC=$HCDIR/bin/$HCKIND 
126136            echo "HC=$HC" >> "$GITHUB_ENV" 
127137            echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV" 
128138            echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV" 
129-             echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV" 
139+             echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV" 
130140          fi 
131141
132142          HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))') 
@@ -185,7 +195,7 @@ jobs:
185195          chmod a+x $HOME/.cabal/bin/cabal-plan 
186196          cabal-plan --version 
187197       - name : checkout 
188-         uses : actions/checkout@v2  
198+         uses : actions/checkout@v3  
189199        with :
190200          path : source 
191201      - name : initial cabal.project for sdist 
@@ -220,8 +230,8 @@ jobs:
220230        run : | 
221231          $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all 
222232          cabal-plan 
223-        - name : cache 
224-         uses : actions/cache@v2  
233+        - name : restore  cache
234+         uses : actions/cache/restore@v3  
225235        with :
226236          key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }} 
227237          path : ~/.cabal/store 
@@ -245,8 +255,14 @@ jobs:
245255          ${CABAL} -vnormal check 
246256       - name : haddock 
247257        run : | 
248-           $CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all 
258+           $CABAL v2-haddock --disable-documentation --haddock-all  $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all 
249259       - name : unconstrained build 
250260        run : | 
251261          rm -f cabal.project.local 
252262          $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all 
263+        - name : save cache 
264+         uses : actions/cache/save@v3 
265+         if : always() 
266+         with :
267+           key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }} 
268+           path : ~/.cabal/store 
0 commit comments