@@ -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.16.6
13−# REGENDATA ("0.17.20231110",["github","cabal.project"])
13+# REGENDATA ("0.16.6",["github","cabal.project"])
15name: Haskell-CI
15name: Haskell-CI
@@ -38,19 +38,14 @@ jobs:
41− - compiler: ghc-9.8.1
41+ - compiler: ghc-9.6.2
42 compilerKind: ghc
42 compilerKind: ghc
43− compilerVersion: 9.8.1
43+ compilerVersion: 9.6.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.4.5
47 compilerKind: ghc
47 compilerKind: ghc
48− compilerVersion: 9.6.3
48+ compilerVersion: 9.4.5
51− - compiler: ghc-9.4.8
53− compilerVersion: 9.4.8
54 setup-method: ghcup
49 setup-method: ghcup
55 allow-failure: false
50 allow-failure: false
56 - compiler: ghc-9.2.8
51 - compiler: ghc-9.2.8
@@ -78,6 +73,36 @@ jobs:
78 compilerVersion: 8.6.5
73 compilerVersion: 8.6.5
79 setup-method: hvr-ppa
74 setup-method: hvr-ppa
80 allow-failure: false
75 allow-failure: false
76+ - compiler: ghc-8.4.4
78+ compilerVersion: 8.4.4
79+ setup-method: hvr-ppa
81+ - compiler: ghc-8.2.2
83+ compilerVersion: 8.2.2
84+ setup-method: hvr-ppa
86+ - compiler: ghc-8.0.2
88+ compilerVersion: 8.0.2
89+ setup-method: hvr-ppa
91+ - compiler: ghc-7.10.3
93+ compilerVersion: 7.10.3
94+ setup-method: hvr-ppa
96+ - compiler: ghc-7.8.4
98+ compilerVersion: 7.8.4
99+ setup-method: hvr-ppa
100+ allow-failure: false
101+ - compiler: ghc-7.6.3
103+ compilerVersion: 7.6.3
104+ setup-method: hvr-ppa
105+ allow-failure: false
81 fail-fast: false
106 fail-fast: false
83 - name: apt
108 - name: apt
@@ -86,18 +111,18 @@ jobs:
86 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
111 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
87 if [ "${{ matrix.setup-method }}" = ghcup ]; then
112 if [ "${{ matrix.setup-method }}" = ghcup ]; then
88 mkdir -p "$HOME/.ghcup/bin"
113 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"
114+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
90 chmod a+x "$HOME/.ghcup/bin/ghcup"
115 chmod a+x "$HOME/.ghcup/bin/ghcup"
91 "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
116 "$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)
117+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
94 apt-add-repository -y 'ppa:hvr/ghc'
119 apt-add-repository -y 'ppa:hvr/ghc'
95 apt-get update
120 apt-get update
96 apt-get install -y "$HCNAME"
121 apt-get install -y "$HCNAME"
97 mkdir -p "$HOME/.ghcup/bin"
122 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"
123+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
99 chmod a+x "$HOME/.ghcup/bin/ghcup"
124 chmod a+x "$HOME/.ghcup/bin/ghcup"
100− "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
125+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
103 HCKIND: ${{ matrix.compilerKind }}
128 HCKIND: ${{ matrix.compilerKind }}
@@ -111,19 +136,17 @@ jobs:
111 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
136 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
112 HCDIR=/opt/$HCKIND/$HCVER
137 HCDIR=/opt/$HCKIND/$HCVER
113 if [ "${{ matrix.setup-method }}" = ghcup ]; then
138 if [ "${{ matrix.setup-method }}" = ghcup ]; then
114− HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
139+ 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"
140 echo "HC=$HC" >> "$GITHUB_ENV"
118− echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
141+ echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
119− echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
142+ echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
120− echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
143+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
122 HC=$HCDIR/bin/$HCKIND
145 HC=$HCDIR/bin/$HCKIND
123 echo "HC=$HC" >> "$GITHUB_ENV"
146 echo "HC=$HC" >> "$GITHUB_ENV"
124 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
147 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
125 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
148 echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
126− echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
149+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.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))')
152 HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -206,8 +229,8 @@ jobs:
206 touch cabal.project
229 touch cabal.project
207 touch cabal.project.local
230 touch cabal.project.local
208 echo "packages: ${PKGDIR_postgresql_simple}" >> cabal.project
231 echo "packages: ${PKGDIR_postgresql_simple}" >> cabal.project
209− echo "package postgresql-simple" >> cabal.project
232+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package postgresql-simple" >> cabal.project ; fi
210− echo " ghc-options: -Werror=missing-methods" >> cabal.project
233+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
211 cat >> cabal.project <<EOF
234 cat >> cabal.project <<EOF
212 allow-newer: cryptohash-md5-0.11.100.1:base
235 allow-newer: cryptohash-md5-0.11.100.1:base