8
8
#
9
9
# For more information, see https://github.com/andreasabel/haskell-ci
10
10
#
11
- # version: 0.17.20230928
11
+ # version: 0.17.20231012
12
12
#
13
- # REGENDATA ("0.17.20230928 ",["github","resolv.cabal"])
13
+ # REGENDATA ("0.17.20231012 ",["github","resolv.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -32,11 +32,11 @@ jobs:
32
32
strategy :
33
33
matrix :
34
34
include :
35
- - compiler : ghc-9.8.0.20230919
35
+ - compiler : ghc-9.8.1
36
36
compilerKind : ghc
37
- compilerVersion : 9.8.0.20230919
37
+ compilerVersion : 9.8.1
38
38
setup-method : ghcup
39
- allow-failure : true
39
+ allow-failure : false
40
40
- compiler : ghc-9.6.3
41
41
compilerKind : ghc
42
42
compilerVersion : 9.6.3
@@ -121,7 +121,7 @@ jobs:
121
121
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
122
122
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
123
123
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
124
- if [ $((HCNUMVER >= 90800)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE= false" >> "$GITHUB_ENV" ; fi
124
+ echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
125
125
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
126
126
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
127
127
env :
@@ -150,18 +150,6 @@ jobs:
150
150
repository hackage.haskell.org
151
151
url: http://hackage.haskell.org/
152
152
EOF
153
- if $HEADHACKAGE; then
154
- cat >> $CABAL_CONFIG <<EOF
155
- repository head.hackage.ghc.haskell.org
156
- url: https://ghc.gitlab.haskell.org/head.hackage/
157
- secure: True
158
- root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
159
- 26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
160
- f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
161
- key-threshold: 3
162
- active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
163
- EOF
164
- fi
165
153
cat >> $CABAL_CONFIG <<EOF
166
154
program-default-options
167
155
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -215,11 +203,8 @@ jobs:
215
203
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package resolv" >> cabal.project ; fi
216
204
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
217
205
cat >> cabal.project <<EOF
218
- allow-newer: bytestring
206
+ allow-newer: containers
219
207
EOF
220
- if $HEADHACKAGE; then
221
- echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
222
- fi
223
208
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(binary|resolv)$/; }' >> cabal.project.local
224
209
cat cabal.project
225
210
cat cabal.project.local
@@ -260,13 +245,13 @@ jobs:
260
245
- name : prepare for constraint sets
261
246
run : |
262
247
rm -f cabal.project.local
263
- - name : constraint set latest-core-libs-Sep-2023
248
+ - name : constraint set containers-0.7
264
249
run : |
265
- if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800 )) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring >= 0.12' --constraint='containers >= 0.7' all --dry-run ; fi
266
- if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800 )) -ne 0 ] ; then cabal-plan topo | sort ; fi
267
- if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800 )) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring >= 0.12' --constraint='containers >= 0.7' --dependencies-only -j2 all ; fi
268
- if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800 )) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring >= 0.12' --constraint='containers >= 0.7' all ; fi
269
- if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800 )) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring >= 0.12' --constraint='containers >= 0.7' all ; fi
250
+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all --dry-run ; fi
251
+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then cabal-plan topo | sort ; fi
252
+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' --dependencies-only -j2 all ; fi
253
+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all ; fi
254
+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all ; fi
270
255
- name : save cache
271
256
uses : actions/cache/save@v3
272
257
if : always()
0 commit comments