@@ -8,9 +8,9 @@
88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11−# version: 0.15.20221009
11+# version: 0.17.20231110
1212#
13−# REGENDATA ("0.15.20221009",["github","cabal.project"])
13+# REGENDATA ("0.17.20231110",["github","cabal.project"])
1414#
1515name: Haskell-CI
1616on:
@@ -38,59 +38,44 @@ jobs:
3838 strategy:
3939 matrix:
4040 include:
41− - compiler: ghc-9.2.1
41+ - compiler: ghc-9.8.1
4242 compilerKind: ghc
43− compilerVersion: 9.2.1
43+ compilerVersion: 9.8.1
4444 setup-method: ghcup
4545 allow-failure: false
46− - compiler: ghc-9.0.1
46+ - compiler: ghc-9.6.3
4747 compilerKind: ghc
48− compilerVersion: 9.0.1
49− setup-method: hvr-ppa
50− allow-failure: false
51− - compiler: ghc-8.10.7
52− compilerKind: ghc
53− compilerVersion: 8.10.7
48+ compilerVersion: 9.6.3
5449 setup-method: ghcup
5550 allow-failure: false
56− - compiler: ghc-8.8.4
57− compilerKind: ghc
58− compilerVersion: 8.8.4
59− setup-method: hvr-ppa
60− allow-failure: false
61− - compiler: ghc-8.6.5
62− compilerKind: ghc
63− compilerVersion: 8.6.5
64− setup-method: hvr-ppa
65− allow-failure: false
66− - compiler: ghc-8.4.4
51+ - compiler: ghc-9.4.8
6752 compilerKind: ghc
68− compilerVersion: 8.4.4
69− setup-method: hvr-ppa
53+ compilerVersion: 9.4.8
54+ setup-method: ghcup
7055 allow-failure: false
71− - compiler: ghc-8.2.2
56+ - compiler: ghc-9.2.8
7257 compilerKind: ghc
73− compilerVersion: 8.2.2
74− setup-method: hvr-ppa
58+ compilerVersion: 9.2.8
59+ setup-method: ghcup
7560 allow-failure: false
76− - compiler: ghc-8.0.2
61+ - compiler: ghc-9.0.2
7762 compilerKind: ghc
78− compilerVersion: 8.0.2
79− setup-method: hvr-ppa
63+ compilerVersion: 9.0.2
64+ setup-method: ghcup
8065 allow-failure: false
81− - compiler: ghc-7.10.3
66+ - compiler: ghc-8.10.7
8267 compilerKind: ghc
83− compilerVersion: 7.10.3
84− setup-method: hvr-ppa
68+ compilerVersion: 8.10.7
69+ setup-method: ghcup
8570 allow-failure: false
86− - compiler: ghc-7.8.4
71+ - compiler: ghc-8.8.4
8772 compilerKind: ghc
88− compilerVersion: 7.8.4
73+ compilerVersion: 8.8.4
8974 setup-method: hvr-ppa
9075 allow-failure: false
91− - compiler: ghc-7.6.3
76+ - compiler: ghc-8.6.5
9277 compilerKind: ghc
93− compilerVersion: 7.6.3
78+ compilerVersion: 8.6.5
9479 setup-method: hvr-ppa
9580 allow-failure: false
9681 fail-fast: false
@@ -101,18 +86,18 @@ jobs:
10186 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
10287 if [ "${{ matrix.setup-method }}" = ghcup ]; then
10388 mkdir -p "$HOME/.ghcup/bin"
104− curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
89+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
10590 chmod a+x "$HOME/.ghcup/bin/ghcup"
10691 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
107− "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
92+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
10893 else
10994 apt-add-repository -y 'ppa:hvr/ghc'
11095 apt-get update
11196 apt-get install -y "$HCNAME"
11297 mkdir -p "$HOME/.ghcup/bin"
113− curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
98+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
11499 chmod a+x "$HOME/.ghcup/bin/ghcup"
115− "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
100+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
116101 fi
117102 env:
118103 HCKIND: ${{ matrix.compilerKind }}
@@ -126,17 +111,19 @@ jobs:
126111 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
127112 HCDIR=/opt/$HCKIND/$HCVER
128113 if [ "${{ matrix.setup-method }}" = ghcup ]; then
129− HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
114+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
115+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
116+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
130117 echo "HC=$HC" >> "$GITHUB_ENV"
131− echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
132− echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
133− echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
118+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
119+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
120+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
134121 else
135122 HC=$HCDIR/bin/$HCKIND
136123 echo "HC=$HC" >> "$GITHUB_ENV"
137124 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
138125 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
139− echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
126+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
140127 fi
141128
142129 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -188,14 +175,14 @@ jobs:
188175 - name: install cabal-plan
189176 run: |
190177 mkdir -p $HOME/.cabal/bin
191− 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
192− echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
178+ 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
179+ echo 'f62ccb2971567a5f638f2005ad3173dba14693a45154c1508645c52289714cb2 cabal-plan.xz' | sha256sum -c -
193180 xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
194181 rm -f cabal-plan.xz
195182 chmod a+x $HOME/.cabal/bin/cabal-plan
196183 cabal-plan --version
197184 - name: checkout
198− uses: actions/checkout@v2
185+ uses: actions/checkout@v3
199186 with:
200187 path: source
201188 - name: initial cabal.project for sdist
@@ -219,8 +206,8 @@ jobs:
219206 touch cabal.project
220207 touch cabal.project.local
221208 echo "packages: ${PKGDIR_postgresql_simple}" >> cabal.project
222− if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package postgresql-simple" >> cabal.project ; fi
223− if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
209+ echo "package postgresql-simple" >> cabal.project
210+ echo " ghc-options: -Werror=missing-methods" >> cabal.project
224211 cat >> cabal.project <<EOF
225212 allow-newer: cryptohash-md5-0.11.100.1:base
226213 EOF
@@ -231,8 +218,8 @@ jobs:
231218 run: |
232219 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
233220 cabal-plan
234− - name: cache
235− uses: actions/cache@v2
221+ - name: restore cache
222+ uses: actions/cache/restore@v3
236223 with:
237224 key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
238225 path: ~/.cabal/store
@@ -256,8 +243,14 @@ jobs:
256243 ${CABAL} -vnormal check
257244 - name: haddock
258245 run: |
259− $CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
246+ $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
260247 - name: unconstrained build
261248 run: |
262249 rm -f cabal.project.local
263250 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
251+ - name: save cache
252+ uses: actions/cache/save@v3
253+ if: always()
254+ with:
255+ key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
256+ path: ~/.cabal/store