@@ -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,14 +38,24 @@ jobs:
3838 strategy:
3939 matrix:
4040 include:
41− - compiler: ghc-9.4.2
41+ - compiler: ghc-9.8.1
4242 compilerKind: ghc
43− compilerVersion: 9.4.2
43+ compilerVersion: 9.8.1
4444 setup-method: ghcup
4545 allow-failure: false
46− - compiler: ghc-9.2.4
46+ - compiler: ghc-9.6.3
4747 compilerKind: ghc
48− compilerVersion: 9.2.4
48+ compilerVersion: 9.6.3
49+ setup-method: ghcup
50+ allow-failure: false
51+ - compiler: ghc-9.4.8
52+ compilerKind: ghc
53+ compilerVersion: 9.4.8
54+ setup-method: ghcup
55+ allow-failure: false
56+ - compiler: ghc-9.2.8
57+ compilerKind: ghc
58+ compilerVersion: 9.2.8
4959 setup-method: ghcup
5060 allow-failure: false
5161 - compiler: ghc-9.0.2
@@ -68,36 +78,6 @@ jobs:
6878 compilerVersion: 8.6.5
6979 setup-method: hvr-ppa
7080 allow-failure: false
71− - compiler: ghc-8.4.4
72− compilerKind: ghc
73− compilerVersion: 8.4.4
74− setup-method: hvr-ppa
75− allow-failure: false
76− - compiler: ghc-8.2.2
77− compilerKind: ghc
78− compilerVersion: 8.2.2
79− setup-method: hvr-ppa
80− allow-failure: false
81− - compiler: ghc-8.0.2
82− compilerKind: ghc
83− compilerVersion: 8.0.2
84− setup-method: hvr-ppa
85− allow-failure: false
86− - compiler: ghc-7.10.3
87− compilerKind: ghc
88− compilerVersion: 7.10.3
89− setup-method: hvr-ppa
90− allow-failure: false
91− - compiler: ghc-7.8.4
92− compilerKind: ghc
93− compilerVersion: 7.8.4
94− setup-method: hvr-ppa
95− allow-failure: false
96− - compiler: ghc-7.6.3
97− compilerKind: ghc
98− compilerVersion: 7.6.3
99− setup-method: hvr-ppa
100− allow-failure: false
10181 fail-fast: false
10282 steps:
10383 - name: apt
@@ -106,18 +86,18 @@ jobs:
10686 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
10787 if [ "${{ matrix.setup-method }}" = ghcup ]; then
10888 mkdir -p "$HOME/.ghcup/bin"
109− 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"
11090 chmod a+x "$HOME/.ghcup/bin/ghcup"
11191 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
112− "$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)
11393 else
11494 apt-add-repository -y 'ppa:hvr/ghc'
11595 apt-get update
11696 apt-get install -y "$HCNAME"
11797 mkdir -p "$HOME/.ghcup/bin"
118− 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"
11999 chmod a+x "$HOME/.ghcup/bin/ghcup"
120− "$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)
121101 fi
122102 env:
123103 HCKIND: ${{ matrix.compilerKind }}
@@ -131,17 +111,19 @@ jobs:
131111 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
132112 HCDIR=/opt/$HCKIND/$HCVER
133113 if [ "${{ matrix.setup-method }}" = ghcup ]; then
134− 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#')
135117 echo "HC=$HC" >> "$GITHUB_ENV"
136− echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
137− echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
138− 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"
139121 else
140122 HC=$HCDIR/bin/$HCKIND
141123 echo "HC=$HC" >> "$GITHUB_ENV"
142124 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
143125 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
144− 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"
145127 fi
146128
147129 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -193,14 +175,14 @@ jobs:
193175 - name: install cabal-plan
194176 run: |
195177 mkdir -p $HOME/.cabal/bin
196− 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
197− 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 -
198180 xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
199181 rm -f cabal-plan.xz
200182 chmod a+x $HOME/.cabal/bin/cabal-plan
201183 cabal-plan --version
202184 - name: checkout
203− uses: actions/checkout@v2
185+ uses: actions/checkout@v3
204186 with:
205187 path: source
206188 - name: initial cabal.project for sdist
@@ -224,8 +206,8 @@ jobs:
224206 touch cabal.project
225207 touch cabal.project.local
226208 echo "packages: ${PKGDIR_postgresql_simple}" >> cabal.project
227− if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package postgresql-simple" >> cabal.project ; fi
228− 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
229211 cat >> cabal.project <<EOF
230212 allow-newer: cryptohash-md5-0.11.100.1:base
231213 EOF
@@ -236,8 +218,8 @@ jobs:
236218 run: |
237219 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
238220 cabal-plan
239− - name: cache
240− uses: actions/cache@v2
221+ - name: restore cache
222+ uses: actions/cache/restore@v3
241223 with:
242224 key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
243225 path: ~/.cabal/store
@@ -261,8 +243,14 @@ jobs:
261243 ${CABAL} -vnormal check
262244 - name: haddock
263245 run: |
264− $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
265247 - name: unconstrained build
266248 run: |
267249 rm -f cabal.project.local
268250 $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