88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11- # version: 0.14
11+ # version: 0.15.20230321
1212#
13- # REGENDATA ("0.14 ",["github","cabal.project"])
13+ # REGENDATA ("0.15.20230321 ",["github","cabal.project"])
1414#
1515name : Haskell-CI
1616on :
17- - push
18- - pull_request
17+ push :
18+ branches :
19+ - master
20+ - ci-*
21+ pull_request :
22+ branches :
23+ - master
24+ - ci-*
1925jobs :
2026 linux :
2127 name : Haskell-CI - Linux - ${{ matrix.compiler }}
22- runs-on : ubuntu-18 .04
28+ runs-on : ubuntu-20 .04
2329 timeout-minutes :
2430 60
2531 container :
2834 strategy :
2935 matrix :
3036 include :
31- - compiler : ghc-9.2 .1
37+ - compiler : ghc-9.6 .1
3238 compilerKind : ghc
33- compilerVersion : 9.2.1
39+ compilerVersion : 9.6.1
40+ setup-method : ghcup
41+ allow-failure : false
42+ - compiler : ghc-9.4.4
43+ compilerKind : ghc
44+ compilerVersion : 9.4.4
45+ setup-method : ghcup
46+ allow-failure : false
47+ - compiler : ghc-9.2.7
48+ compilerKind : ghc
49+ compilerVersion : 9.2.7
3450 setup-method : ghcup
3551 allow-failure : false
3652 - compiler : ghc-9.0.2
@@ -81,18 +97,18 @@ jobs:
8197 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
8298 if [ "${{ matrix.setup-method }}" = ghcup ]; then
8399 mkdir -p "$HOME/.ghcup/bin"
84- curl -sL https://downloads.haskell.org/ghcup/0.1.17.3 /x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
100+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
85101 chmod a+x "$HOME/.ghcup/bin/ghcup"
86- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
87- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
102+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
103+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
88104 else
89105 apt-add-repository -y 'ppa:hvr/ghc'
90106 apt-get update
91107 apt-get install -y "$HCNAME"
92108 mkdir -p "$HOME/.ghcup/bin"
93- curl -sL https://downloads.haskell.org/ghcup/0.1.17.3 /x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
109+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
94110 chmod a+x "$HOME/.ghcup/bin/ghcup"
95- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
111+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
96112 fi
97113 env :
98114 HCKIND : ${{ matrix.compilerKind }}
@@ -110,13 +126,13 @@ jobs:
110126 echo "HC=$HC" >> "$GITHUB_ENV"
111127 echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
112128 echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
113- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
129+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
114130 else
115131 HC=$HCDIR/bin/$HCKIND
116132 echo "HC=$HC" >> "$GITHUB_ENV"
117133 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
118134 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
119- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
135+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
120136 fi
121137
122138 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -175,7 +191,7 @@ jobs:
175191 chmod a+x $HOME/.cabal/bin/cabal-plan
176192 cabal-plan --version
177193 - name : checkout
178- uses : actions/checkout@v2
194+ uses : actions/checkout@v3
179195 with :
180196 path : source
181197 - name : initial cabal.project for sdist
@@ -216,8 +232,8 @@ jobs:
216232 run : |
217233 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
218234 cabal-plan
219- - name : cache
220- uses : actions/cache@v2
235+ - name : restore cache
236+ uses : actions/cache/restore@v3
221237 with :
222238 key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
223239 path : ~/.cabal/store
@@ -240,8 +256,14 @@ jobs:
240256 ${CABAL} -vnormal check
241257 - name : haddock
242258 run : |
243- $CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
259+ $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
244260 - name : unconstrained build
245261 run : |
246262 rm -f cabal.project.local
247263 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
264+ - name : save cache
265+ uses : actions/cache/save@v3
266+ if : always()
267+ with :
268+ key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
269+ path : ~/.cabal/store
0 commit comments