@@ -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.16.6
1212#
13−# REGENDATA ("0.17.20231110",["github","cabal.project"])
13+# REGENDATA ("0.16.6",["github","cabal.project"])
1414#
1515name: Haskell-CI
1616on:
@@ -38,19 +38,14 @@ jobs:
3838 strategy:
3939 matrix:
4040 include:
41− - compiler: ghc-9.8.1
41+ - compiler: ghc-9.6.2
4242 compilerKind: ghc
43− compilerVersion: 9.8.1
43+ compilerVersion: 9.6.2
4444 setup-method: ghcup
4545 allow-failure: false
46− - compiler: ghc-9.6.3
46+ - compiler: ghc-9.4.5
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
48+ compilerVersion: 9.4.5
5449 setup-method: ghcup
5550 allow-failure: false
5651 - compiler: ghc-9.2.8
@@ -78,6 +73,36 @@ jobs:
7873 compilerVersion: 8.6.5
7974 setup-method: hvr-ppa
8075 allow-failure: false
76+ - compiler: ghc-8.4.4
77+ compilerKind: ghc
78+ compilerVersion: 8.4.4
79+ setup-method: hvr-ppa
80+ allow-failure: false
81+ - compiler: ghc-8.2.2
82+ compilerKind: ghc
83+ compilerVersion: 8.2.2
84+ setup-method: hvr-ppa
85+ allow-failure: false
86+ - compiler: ghc-8.0.2
87+ compilerKind: ghc
88+ compilerVersion: 8.0.2
89+ setup-method: hvr-ppa
90+ allow-failure: false
91+ - compiler: ghc-7.10.3
92+ compilerKind: ghc
93+ compilerVersion: 7.10.3
94+ setup-method: hvr-ppa
95+ allow-failure: false
96+ - compiler: ghc-7.8.4
97+ compilerKind: ghc
98+ compilerVersion: 7.8.4
99+ setup-method: hvr-ppa
100+ allow-failure: false
101+ - compiler: ghc-7.6.3
102+ compilerKind: ghc
103+ compilerVersion: 7.6.3
104+ setup-method: hvr-ppa
105+ allow-failure: false
81106 fail-fast: false
82107 steps:
83108 - name: apt
@@ -86,18 +111,18 @@ jobs:
86111 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
87112 if [ "${{ matrix.setup-method }}" = ghcup ]; then
88113 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"
90115 chmod a+x "$HOME/.ghcup/bin/ghcup"
91116 "$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)
93118 else
94119 apt-add-repository -y 'ppa:hvr/ghc'
95120 apt-get update
96121 apt-get install -y "$HCNAME"
97122 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"
99124 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)
101126 fi
102127 env:
103128 HCKIND: ${{ matrix.compilerKind }}
@@ -111,19 +136,17 @@ jobs:
111136 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
112137 HCDIR=/opt/$HCKIND/$HCVER
113138 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#')
139+ HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
117140 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"
141+ echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
142+ echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
143+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
121144 else
122145 HC=$HCDIR/bin/$HCKIND
123146 echo "HC=$HC" >> "$GITHUB_ENV"
124147 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
125148 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"
127150 fi
128151
129152 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:
206229 touch cabal.project
207230 touch cabal.project.local
208231 echo "packages: ${PKGDIR_postgresql_simple}" >> cabal.project
209− echo "package postgresql-simple" >> cabal.project
210− echo " ghc-options: -Werror=missing-methods" >> cabal.project
232+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package postgresql-simple" >> cabal.project ; fi
233+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
211234 cat >> cabal.project <<EOF
212235 allow-newer: cryptohash-md5-0.11.100.1:base
213236 EOF