@@ -8,9 +8,9 @@
88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11−# version: 0.17.20231110
11+# version: 0.15.20221009
1212#
13−# REGENDATA ("0.17.20231110",["github","cabal.project"])
13+# REGENDATA ("0.15.20221009",["github","cabal.project"])
1414#
1515name: Haskell-CI
1616on:
@@ -38,30 +38,15 @@ jobs:
3838 strategy:
3939 matrix:
4040 include:
41− - compiler: ghc-9.8.1
41+ - compiler: ghc-9.2.1
4242 compilerKind: ghc
43− compilerVersion: 9.8.1
43+ compilerVersion: 9.2.1
4444 setup-method: ghcup
4545 allow-failure: false
46− - compiler: ghc-9.6.3
46+ - compiler: ghc-9.0.1
4747 compilerKind: ghc
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
59− setup-method: ghcup
60− allow-failure: false
61− - compiler: ghc-9.0.2
62− compilerKind: ghc
63− compilerVersion: 9.0.2
64− setup-method: ghcup
48+ compilerVersion: 9.0.1
49+ setup-method: hvr-ppa
6550 allow-failure: false
6651 - compiler: ghc-8.10.7
6752 compilerKind: ghc
@@ -78,6 +63,36 @@ jobs:
7863 compilerVersion: 8.6.5
7964 setup-method: hvr-ppa
8065 allow-failure: false
66+ - compiler: ghc-8.4.4
67+ compilerKind: ghc
68+ compilerVersion: 8.4.4
69+ setup-method: hvr-ppa
70+ allow-failure: false
71+ - compiler: ghc-8.2.2
72+ compilerKind: ghc
73+ compilerVersion: 8.2.2
74+ setup-method: hvr-ppa
75+ allow-failure: false
76+ - compiler: ghc-8.0.2
77+ compilerKind: ghc
78+ compilerVersion: 8.0.2
79+ setup-method: hvr-ppa
80+ allow-failure: false
81+ - compiler: ghc-7.10.3
82+ compilerKind: ghc
83+ compilerVersion: 7.10.3
84+ setup-method: hvr-ppa
85+ allow-failure: false
86+ - compiler: ghc-7.8.4
87+ compilerKind: ghc
88+ compilerVersion: 7.8.4
89+ setup-method: hvr-ppa
90+ allow-failure: false
91+ - compiler: ghc-7.6.3
92+ compilerKind: ghc
93+ compilerVersion: 7.6.3
94+ setup-method: hvr-ppa
95+ allow-failure: false
8196 fail-fast: false
8297 steps:
8398 - name: apt
@@ -86,18 +101,18 @@ jobs:
86101 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
87102 if [ "${{ matrix.setup-method }}" = ghcup ]; then
88103 mkdir -p "$HOME/.ghcup/bin"
89− curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
104+ curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
90105 chmod a+x "$HOME/.ghcup/bin/ghcup"
91106 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
92− "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
107+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
93108 else
94109 apt-add-repository -y 'ppa:hvr/ghc'
95110 apt-get update
96111 apt-get install -y "$HCNAME"
97112 mkdir -p "$HOME/.ghcup/bin"
98− curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
113+ curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
99114 chmod a+x "$HOME/.ghcup/bin/ghcup"
100− "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
115+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
101116 fi
102117 env:
103118 HCKIND: ${{ matrix.compilerKind }}
@@ -111,19 +126,17 @@ jobs:
111126 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
112127 HCDIR=/opt/$HCKIND/$HCVER
113128 if [ "${{ matrix.setup-method }}" = ghcup ]; then
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#')
129+ HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
117130 echo "HC=$HC" >> "$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"
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"
121134 else
122135 HC=$HCDIR/bin/$HCKIND
123136 echo "HC=$HC" >> "$GITHUB_ENV"
124137 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
125138 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
126− echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
139+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
127140 fi
128141
129142 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -175,14 +188,14 @@ jobs:
175188 - name: install cabal-plan
176189 run: |
177190 mkdir -p $HOME/.cabal/bin
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 -
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 -
180193 xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
181194 rm -f cabal-plan.xz
182195 chmod a+x $HOME/.cabal/bin/cabal-plan
183196 cabal-plan --version
184197 - name: checkout
185− uses: actions/checkout@v3
198+ uses: actions/checkout@v2
186199 with:
187200 path: source
188201 - name: initial cabal.project for sdist
@@ -206,8 +219,8 @@ jobs:
206219 touch cabal.project
207220 touch cabal.project.local
208221 echo "packages: ${PKGDIR_postgresql_simple}" >> cabal.project
209− echo "package postgresql-simple" >> cabal.project
210− echo " ghc-options: -Werror=missing-methods" >> 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
211224 cat >> cabal.project <<EOF
212225 allow-newer: cryptohash-md5-0.11.100.1:base
213226 EOF
@@ -218,8 +231,8 @@ jobs:
218231 run: |
219232 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
220233 cabal-plan
221− - name: restore cache
222− uses: actions/cache/restore@v3
234+ - name: cache
235+ uses: actions/cache@v2
223236 with:
224237 key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
225238 path: ~/.cabal/store
@@ -243,14 +256,8 @@ jobs:
243256 ${CABAL} -vnormal check
244257 - name: haddock
245258 run: |
246− $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
259+ $CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
247260 - name: unconstrained build
248261 run: |
249262 rm -f cabal.project.local
250263 $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