88#
99# For more information, see https://github.com/haskell-CI/haskell-ci
1010#
11- # version: 0.19.20250216
11+ # version: 0.19.20250821
1212#
13- # REGENDATA ("0.19.20250216 ",["github","--config=cabal.haskell-ci","cabal.project"])
13+ # REGENDATA ("0.19.20250821 ",["github","--config=cabal.haskell-ci","cabal.project"])
1414#
1515name : Haskell-CI
1616on :
@@ -38,24 +38,29 @@ jobs:
3838 strategy :
3939 matrix :
4040 include :
41- - compiler : ghc-9.12.1
41+ - compiler : ghc-9.14.0.20250819
4242 compilerKind : ghc
43- compilerVersion : 9.12.1
43+ compilerVersion : 9.14.0.20250819
44+ setup-method : ghcup-prerelease
45+ allow-failure : false
46+ - compiler : ghc-9.12.2
47+ compilerKind : ghc
48+ compilerVersion : 9.12.2
4449 setup-method : ghcup
4550 allow-failure : false
46- - compiler : ghc-9.10.1
51+ - compiler : ghc-9.10.2
4752 compilerKind : ghc
48- compilerVersion : 9.10.1
53+ compilerVersion : 9.10.2
4954 setup-method : ghcup
5055 allow-failure : false
5156 - compiler : ghc-9.8.4
5257 compilerKind : ghc
5358 compilerVersion : 9.8.4
5459 setup-method : ghcup
5560 allow-failure : false
56- - compiler : ghc-9.6.6
61+ - compiler : ghc-9.6.7
5762 compilerKind : ghc
58- compilerVersion : 9.6.6
63+ compilerVersion : 9.6.7
5964 setup-method : ghcup
6065 allow-failure : false
6166 - compiler : ghc-9.4.8
@@ -87,12 +92,12 @@ jobs:
8792 - name : Install GHCup
8893 run : |
8994 mkdir -p "$HOME/.ghcup/bin"
90- curl -sL https://downloads.haskell.org/ghcup/0.1.30.0 /x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
95+ curl -sL https://downloads.haskell.org/ghcup/0.1.50.1 /x86_64-linux-ghcup-0.1.50.1 > "$HOME/.ghcup/bin/ghcup"
9196 chmod a+x "$HOME/.ghcup/bin/ghcup"
9297 - name : Install cabal-install
9398 run : |
94- "$HOME/.ghcup/bin/ghcup" install cabal 3.12.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
95- echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
99+ "$HOME/.ghcup/bin/ghcup" install cabal 3.16.0 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
100+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.16.0 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
96101 - name : Install GHC (GHCup)
97102 if : matrix.setup-method == 'ghcup'
98103 run : |
@@ -107,6 +112,21 @@ jobs:
107112 HCKIND : ${{ matrix.compilerKind }}
108113 HCNAME : ${{ matrix.compiler }}
109114 HCVER : ${{ matrix.compilerVersion }}
115+ - name : Install GHC (GHCup prerelease)
116+ if : matrix.setup-method == 'ghcup-prerelease'
117+ run : |
118+ "$HOME/.ghcup/bin/ghcup" config add-release-channel prereleases
119+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
120+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
121+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
122+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
123+ echo "HC=$HC" >> "$GITHUB_ENV"
124+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
125+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
126+ env :
127+ HCKIND : ${{ matrix.compilerKind }}
128+ HCNAME : ${{ matrix.compiler }}
129+ HCVER : ${{ matrix.compilerVersion }}
110130 - name : Set PATH and environment variables
111131 run : |
112132 echo "$HOME/.cabal/bin" >> $GITHUB_PATH
@@ -117,7 +137,7 @@ jobs:
117137 echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
118138 echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
119139 echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
120- echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
140+ if [ $((HCNUMVER >= 91400)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE= false" >> "$GITHUB_ENV" ; fi
121141 echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
122142 env :
123143 HCKIND : ${{ matrix.compilerKind }}
@@ -145,6 +165,18 @@ jobs:
145165 repository hackage.haskell.org
146166 url: http://hackage.haskell.org/
147167 EOF
168+ if $HEADHACKAGE; then
169+ cat >> $CABAL_CONFIG <<EOF
170+ repository head.hackage.ghc.haskell.org
171+ url: https://ghc.gitlab.haskell.org/head.hackage/
172+ secure: True
173+ root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
174+ 26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
175+ f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
176+ key-threshold: 3
177+ active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
178+ EOF
179+ fi
148180 cat >> $CABAL_CONFIG <<EOF
149181 program-default-options
150182 ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -193,12 +225,19 @@ jobs:
193225 touch cabal.project.local
194226 echo "packages: ${PKGDIR_hpqtypes}" >> cabal.project
195227 echo "package hpqtypes" >> cabal.project
196- echo " ghc-options: -Werror=missing-methods" >> cabal.project
228+ echo " ghc-options: -Werror=missing-methods -Werror=missing-fields" >> cabal.project
229+ if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "package hpqtypes" >> cabal.project ; fi
230+ if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo " ghc-options: -Werror=unused-packages" >> cabal.project ; fi
231+ if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then echo "package hpqtypes" >> cabal.project ; fi
232+ if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then echo " ghc-options: -Werror=incomplete-patterns -Werror=incomplete-uni-patterns" >> cabal.project ; fi
197233 cat >> cabal.project <<EOF
198234 allow-newer: *:base
199235 allow-newer: *:ghc-prim
200236 allow-newer: *:template-haskell
201237 EOF
238+ if $HEADHACKAGE; then
239+ echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
240+ fi
202241 $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(hpqtypes)$/; }' >> cabal.project.local
203242 cat cabal.project
204243 cat cabal.project.local
0 commit comments