8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.15.20220609
11
+ # version: 0.15.20220808
12
12
#
13
- # REGENDATA ("0.15.20220609 ",["github","cabal.project"])
13
+ # REGENDATA ("0.15.20220808 ",["github","cabal.project"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -32,14 +32,14 @@ jobs:
32
32
strategy :
33
33
matrix :
34
34
include :
35
- - compiler : ghc-9.4.0.20220523
35
+ - compiler : ghc-9.4.1
36
36
compilerKind : ghc
37
- compilerVersion : 9.4.0.20220523
37
+ compilerVersion : 9.4.1
38
38
setup-method : ghcup
39
- allow-failure : true
40
- - compiler : ghc-9.2.3
39
+ allow-failure : false
40
+ - compiler : ghc-9.2.4
41
41
compilerKind : ghc
42
- compilerVersion : 9.2.3
42
+ compilerVersion : 9.2.4
43
43
setup-method : ghcup
44
44
allow-failure : false
45
45
- compiler : ghc-9.0.2
@@ -85,17 +85,16 @@ jobs:
85
85
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
86
86
if [ "${{ matrix.setup-method }}" = ghcup ]; then
87
87
mkdir -p "$HOME/.ghcup/bin"
88
- curl -sL https://downloads.haskell.org/ghcup/0.1.17.8 /x86_64-linux-ghcup-0.1.17.8 > "$HOME/.ghcup/bin/ghcup"
88
+ curl -sL https://downloads.haskell.org/ghcup/0.1.18.0 /x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
89
89
chmod a+x "$HOME/.ghcup/bin/ghcup"
90
- if $HEADHACKAGE; then "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml; fi
91
90
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
92
91
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
93
92
else
94
93
apt-add-repository -y 'ppa:hvr/ghc'
95
94
apt-get update
96
95
apt-get install -y "$HCNAME"
97
96
mkdir -p "$HOME/.ghcup/bin"
98
- curl -sL https://downloads.haskell.org/ghcup/0.1.17.8 /x86_64-linux-ghcup-0.1.17.8 > "$HOME/.ghcup/bin/ghcup"
97
+ curl -sL https://downloads.haskell.org/ghcup/0.1.18.0 /x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
99
98
chmod a+x "$HOME/.ghcup/bin/ghcup"
100
99
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
101
100
fi
@@ -128,7 +127,7 @@ jobs:
128
127
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
129
128
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
130
129
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
131
- if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE= false" >> "$GITHUB_ENV" ; fi
130
+ echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
132
131
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
133
132
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
134
133
env :
@@ -157,18 +156,6 @@ jobs:
157
156
repository hackage.haskell.org
158
157
url: http://hackage.haskell.org/
159
158
EOF
160
- if $HEADHACKAGE; then
161
- cat >> $CABAL_CONFIG <<EOF
162
- repository head.hackage.ghc.haskell.org
163
- url: https://ghc.gitlab.haskell.org/head.hackage/
164
- secure: True
165
- root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
166
- 26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
167
- f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
168
- key-threshold: 3
169
- active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
170
- EOF
171
- fi
172
159
cat >> $CABAL_CONFIG <<EOF
173
160
program-default-options
174
161
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -237,9 +224,6 @@ jobs:
237
224
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
238
225
cat >> cabal.project <<EOF
239
226
EOF
240
- if $HEADHACKAGE; then
241
- echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
242
- fi
243
227
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(aeson|aeson-examples|attoparsec-iso8601)$/; }' >> cabal.project.local
244
228
cat cabal.project
245
229
cat cabal.project.local
@@ -283,9 +267,9 @@ jobs:
283
267
$CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=2.0' all
284
268
- name : constraint set text-1.2
285
269
run : |
286
- $ CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=1.2.3.0' --dependencies-only -j2 all
287
- $ CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=1.2.3.0' all
288
- $ CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=1.2.3.0' all
270
+ if [ $((HCNUMVER < 90400)) -ne 0 ] ; then $ CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=1.2.3.0' --dependencies-only -j2 all ; fi
271
+ if [ $((HCNUMVER < 90400)) -ne 0 ] ; then $ CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=1.2.3.0' all ; fi
272
+ if [ $((HCNUMVER < 90400)) -ne 0 ] ; then $ CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=1.2.3.0' all ; fi
289
273
- name : constraint set bytestring-0.11.2.0
290
274
run : |
291
275
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='bytestring >= 0.11.2.0' --dependencies-only -j2 all
0 commit comments