@@ -8,9 +8,9 @@
9# For more information, see https://github.com/haskell-CI/haskell-ci
9# For more information, see https://github.com/haskell-CI/haskell-ci
11−# version: 0.17.20231110
11+# version: 0.15.20221009
13−# REGENDATA ("0.17.20231110",["github","cabal.project"])
13+# REGENDATA ("0.15.20221009",["github","cabal.project"])
15name: Haskell-CI
15name: Haskell-CI
@@ -38,24 +38,14 @@ jobs:
41− - compiler: ghc-9.8.1
41+ - compiler: ghc-9.4.2
42 compilerKind: ghc
42 compilerKind: ghc
43− compilerVersion: 9.8.1
43+ compilerVersion: 9.4.2
44 setup-method: ghcup
44 setup-method: ghcup
45 allow-failure: false
45 allow-failure: false
46− - compiler: ghc-9.6.3
46+ - compiler: ghc-9.2.4
47 compilerKind: ghc
47 compilerKind: ghc
48− compilerVersion: 9.6.3
48+ compilerVersion: 9.2.4
51− - compiler: ghc-9.4.8
53− compilerVersion: 9.4.8
56− - compiler: ghc-9.2.8
58− compilerVersion: 9.2.8
59 setup-method: ghcup
49 setup-method: ghcup
60 allow-failure: false
50 allow-failure: false
61 - compiler: ghc-9.0.2
51 - compiler: ghc-9.0.2
@@ -78,6 +68,36 @@ jobs:
78 compilerVersion: 8.6.5
68 compilerVersion: 8.6.5
79 setup-method: hvr-ppa
69 setup-method: hvr-ppa
80 allow-failure: false
70 allow-failure: false
71+ - compiler: ghc-8.4.4
73+ compilerVersion: 8.4.4
74+ setup-method: hvr-ppa
76+ - compiler: ghc-8.2.2
78+ compilerVersion: 8.2.2
79+ setup-method: hvr-ppa
81+ - compiler: ghc-8.0.2
83+ compilerVersion: 8.0.2
84+ setup-method: hvr-ppa
86+ - compiler: ghc-7.10.3
88+ compilerVersion: 7.10.3
89+ setup-method: hvr-ppa
91+ - compiler: ghc-7.8.4
93+ compilerVersion: 7.8.4
94+ setup-method: hvr-ppa
96+ - compiler: ghc-7.6.3
98+ compilerVersion: 7.6.3
99+ setup-method: hvr-ppa
100+ allow-failure: false
81 fail-fast: false
101 fail-fast: false
83 - name: apt
103 - name: apt
@@ -86,18 +106,18 @@ jobs:
86 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
106 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
87 if [ "${{ matrix.setup-method }}" = ghcup ]; then
107 if [ "${{ matrix.setup-method }}" = ghcup ]; then
88 mkdir -p "$HOME/.ghcup/bin"
108 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"
109+ curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
90 chmod a+x "$HOME/.ghcup/bin/ghcup"
110 chmod a+x "$HOME/.ghcup/bin/ghcup"
91 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
111 "$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)
112+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
94 apt-add-repository -y 'ppa:hvr/ghc'
114 apt-add-repository -y 'ppa:hvr/ghc'
95 apt-get update
115 apt-get update
96 apt-get install -y "$HCNAME"
116 apt-get install -y "$HCNAME"
97 mkdir -p "$HOME/.ghcup/bin"
117 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"
118+ curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
99 chmod a+x "$HOME/.ghcup/bin/ghcup"
119 chmod a+x "$HOME/.ghcup/bin/ghcup"
100− "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
120+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
103 HCKIND: ${{ matrix.compilerKind }}
123 HCKIND: ${{ matrix.compilerKind }}
@@ -111,19 +131,17 @@ jobs:
111 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
131 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
112 HCDIR=/opt/$HCKIND/$HCVER
132 HCDIR=/opt/$HCKIND/$HCVER
113 if [ "${{ matrix.setup-method }}" = ghcup ]; then
133 if [ "${{ matrix.setup-method }}" = ghcup ]; then
114− HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
134+ HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
115− HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
116− HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
117 echo "HC=$HC" >> "$GITHUB_ENV"
135 echo "HC=$HC" >> "$GITHUB_ENV"
118− echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
136+ echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
119− echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
137+ echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
120− echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
138+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
122 HC=$HCDIR/bin/$HCKIND
140 HC=$HCDIR/bin/$HCKIND
123 echo "HC=$HC" >> "$GITHUB_ENV"
141 echo "HC=$HC" >> "$GITHUB_ENV"
124 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
142 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
125 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
143 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
126− echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
144+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
129 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
147 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -175,14 +193,14 @@ jobs:
175 - name: install cabal-plan
193 - name: install cabal-plan
177 mkdir -p $HOME/.cabal/bin
195 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
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
179− echo 'f62ccb2971567a5f638f2005ad3173dba14693a45154c1508645c52289714cb2 cabal-plan.xz' | sha256sum -c -
197+ echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
180 xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
198 xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
181 rm -f cabal-plan.xz
199 rm -f cabal-plan.xz
182 chmod a+x $HOME/.cabal/bin/cabal-plan
200 chmod a+x $HOME/.cabal/bin/cabal-plan
183 cabal-plan --version
201 cabal-plan --version
184 - name: checkout
202 - name: checkout
185− uses: actions/checkout@v3
203+ uses: actions/checkout@v2
187 path: source
205 path: source
188 - name: initial cabal.project for sdist
206 - name: initial cabal.project for sdist
@@ -206,8 +224,8 @@ jobs:
206 touch cabal.project
224 touch cabal.project
207 touch cabal.project.local
225 touch cabal.project.local
208 echo "packages: ${PKGDIR_postgresql_simple}" >> cabal.project
226 echo "packages: ${PKGDIR_postgresql_simple}" >> cabal.project
209− echo "package postgresql-simple" >> cabal.project
227+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package postgresql-simple" >> cabal.project ; fi
210− echo " ghc-options: -Werror=missing-methods" >> cabal.project
228+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
211 cat >> cabal.project <<EOF
229 cat >> cabal.project <<EOF
212 allow-newer: cryptohash-md5-0.11.100.1:base
230 allow-newer: cryptohash-md5-0.11.100.1:base
@@ -218,8 +236,8 @@ jobs:
219 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
237 $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
220 cabal-plan
238 cabal-plan
221− - name: restore cache
239+ - name: cache
222− uses: actions/cache/restore@v3
240+ uses: actions/cache@v2
224 key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
242 key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
225 path: ~/.cabal/store
243 path: ~/.cabal/store
@@ -243,14 +261,8 @@ jobs:
243 ${CABAL} -vnormal check
261 ${CABAL} -vnormal check
244 - name: haddock
262 - name: haddock
246− $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
264+ $CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
247 - name: unconstrained build
265 - name: unconstrained build
249 rm -f cabal.project.local
267 rm -f cabal.project.local
250 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
268 $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
252− uses: actions/cache/save@v3
255− key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
256− path: ~/.cabal/store