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