88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11- # version: 0.14.3
11+ # version: 0.16.6
1212#
13- # REGENDATA ("0.14.3 ",["github","cobot-io.cabal"])
13+ # REGENDATA ("0.16.6 ",["github","cobot-io.cabal"])
1414#
1515name : Haskell-CI
1616on :
2323jobs :
2424 linux :
2525 name : Haskell-CI - Linux - ${{ matrix.compiler }}
26- runs-on : ubuntu-18 .04
26+ runs-on : ubuntu-20 .04
2727 timeout-minutes :
2828 60
2929 container :
3232 strategy :
3333 matrix :
3434 include :
35- - compiler : ghc-9.4.4
35+ - compiler : ghc-9.2.8
3636 compilerKind : ghc
37- compilerVersion : 9.4.4
38- setup-method : ghcup
39- allow-failure : true
40- - compiler : ghc-9.2.5
41- compilerKind : ghc
42- compilerVersion : 9.2.5
37+ compilerVersion : 9.2.8
4338 setup-method : ghcup
4439 allow-failure : true
4540 - compiler : ghc-9.0.2
@@ -59,10 +54,10 @@ jobs:
5954 apt-get update
6055 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
6156 mkdir -p "$HOME/.ghcup/bin"
62- curl -sL https://downloads.haskell.org/ghcup/0.1.17.5 /x86_64-linux-ghcup-0.1.17.5 > "$HOME/.ghcup/bin/ghcup"
57+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
6358 chmod a+x "$HOME/.ghcup/bin/ghcup"
64- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
65- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
59+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
60+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
6661 env :
6762 HCKIND : ${{ matrix.compilerKind }}
6863 HCNAME : ${{ matrix.compiler }}
7873 echo "HC=$HC" >> "$GITHUB_ENV"
7974 echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
8075 echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
81- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
76+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
8277 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
8378 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
8479 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -128,8 +123,8 @@ jobs:
128123 - name : install cabal-plan
129124 run : |
130125 mkdir -p $HOME/.cabal/bin
131- curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.6.2 .0/cabal-plan-0.6.2 .0-x86_64-linux.xz > cabal-plan.xz
132- echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
126+ curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.7.3 .0/cabal-plan-0.7.3 .0-x86_64-linux.xz > cabal-plan.xz
127+ echo 'f62ccb2971567a5f638f2005ad3173dba14693a45154c1508645c52289714cb2 cabal-plan.xz' | sha256sum -c -
133128 xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
134129 rm -f cabal-plan.xz
135130 chmod a+x $HOME/.cabal/bin/cabal-plan
@@ -142,7 +137,7 @@ jobs:
142137 chmod a+x $HOME/.cabal/bin/hpack
143138 hpack --version
144139 - name : checkout
145- uses : actions/checkout@v2
140+ uses : actions/checkout@v3
146141 with :
147142 path : source
148143 - name : generate cabal file
@@ -183,8 +178,8 @@ jobs:
183178 run : |
184179 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
185180 cabal-plan
186- - name : cache
187- uses : actions/cache@v2
181+ - name : restore cache
182+ uses : actions/cache/restore@v3
188183 with :
189184 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
190185 path : ~/.cabal/store
@@ -208,8 +203,14 @@ jobs:
208203 ${CABAL} -vnormal check
209204 - name : haddock
210205 run : |
211- $CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
206+ $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
212207 - name : unconstrained build
213208 run : |
214209 rm -f cabal.project.local
215210 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
211+ - name : save cache
212+ uses : actions/cache/save@v3
213+ if : always()
214+ with :
215+ key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
216+ path : ~/.cabal/store
0 commit comments