@@ -8,9 +8,9 @@
88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11−# version: 0.16
11+# version: 0.17.20231110
1212#
13−# REGENDATA ("0.16",["github","cabal.project"])
13+# REGENDATA ("0.17.20231110",["github","cabal.project"])
1414#
1515name: Haskell-CI
1616on:
@@ -38,19 +38,24 @@ jobs:
3838 strategy:
3939 matrix:
4040 include:
41− - compiler: ghc-9.6.1
41+ - compiler: ghc-9.8.1
4242 compilerKind: ghc
43− compilerVersion: 9.6.1
43+ compilerVersion: 9.8.1
4444 setup-method: ghcup
4545 allow-failure: false
46− - compiler: ghc-9.4.4
46+ - compiler: ghc-9.6.3
4747 compilerKind: ghc
48− compilerVersion: 9.4.4
48+ compilerVersion: 9.6.3
4949 setup-method: ghcup
5050 allow-failure: false
51− - compiler: ghc-9.2.7
51+ - compiler: ghc-9.4.8
5252 compilerKind: ghc
53− compilerVersion: 9.2.7
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
5459 setup-method: ghcup
5560 allow-failure: false
5661 - compiler: ghc-9.0.2
@@ -73,36 +78,6 @@ jobs:
7378 compilerVersion: 8.6.5
7479 setup-method: hvr-ppa
7580 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
10681 fail-fast: false
10782 steps:
10883 - name: apt
@@ -111,18 +86,18 @@ jobs:
11186 apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
11287 if [ "${{ matrix.setup-method }}" = ghcup ]; then
11388 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"
11590 chmod a+x "$HOME/.ghcup/bin/ghcup"
11691 "$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)
11893 else
11994 apt-add-repository -y 'ppa:hvr/ghc'
12095 apt-get update
12196 apt-get install -y "$HCNAME"
12297 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"
12499 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)
126101 fi
127102 env:
128103 HCKIND: ${{ matrix.compilerKind }}
@@ -136,17 +111,19 @@ jobs:
136111 echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
137112 HCDIR=/opt/$HCKIND/$HCVER
138113 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#')
140117 echo "HC=$HC" >> "$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"
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"
144121 else
145122 HC=$HCDIR/bin/$HCKIND
146123 echo "HC=$HC" >> "$GITHUB_ENV"
147124 echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
148125 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"
150127 fi
151128
152129 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:
229206 touch cabal.project
230207 touch cabal.project.local
231208 echo "packages: ${PKGDIR_postgresql_simple}" >> 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
209+ echo "package postgresql-simple" >> cabal.project
210+ echo " ghc-options: -Werror=missing-methods" >> cabal.project
234211 cat >> cabal.project <<EOF
235212 allow-newer: cryptohash-md5-0.11.100.1:base
236213 EOF