Skip to content

Commit 407820c

Browse files
ci: Regenerate haskell-ci
1 parent 3ccd803 commit 407820c

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.19.20251211
11+
# version: 0.19.20260102
1212
#
13-
# REGENDATA ("0.19.20251211",["github","cabal.project"])
13+
# REGENDATA ("0.19.20260102",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -36,6 +36,11 @@ jobs:
3636
strategy:
3737
matrix:
3838
include:
39+
- compiler: ghc-9.14.1
40+
compilerKind: ghc
41+
compilerVersion: 9.14.1
42+
setup-method: ghcup
43+
allow-failure: false
3944
- compiler: ghc-9.12.2
4045
compilerKind: ghc
4146
compilerVersion: 9.12.2
@@ -122,7 +127,7 @@ jobs:
122127
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
123128
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
124129
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
125-
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
130+
if [ $((HCNUMVER >= 91400)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
126131
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
127132
env:
128133
HCKIND: ${{ matrix.compilerKind }}
@@ -150,6 +155,18 @@ jobs:
150155
repository hackage.haskell.org
151156
url: http://hackage.haskell.org/
152157
EOF
158+
if $HEADHACKAGE; then
159+
cat >> $CABAL_CONFIG <<EOF
160+
repository head.hackage.ghc.haskell.org
161+
url: https://ghc.gitlab.haskell.org/head.hackage/
162+
secure: True
163+
root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
164+
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
165+
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
166+
key-threshold: 3
167+
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
168+
EOF
169+
fi
153170
cat >> $CABAL_CONFIG <<EOF
154171
program-default-options
155172
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -215,6 +232,9 @@ jobs:
215232
flags: +pedantic
216233
ghc-options: -j
217234
EOF
235+
if $HEADHACKAGE; then
236+
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
237+
fi
218238
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(xmonad-contrib)$/; }' >> cabal.project.local
219239
cat cabal.project
220240
cat cabal.project.local

0 commit comments

Comments
 (0)