8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.13.20210606
11
+ # version: 0.13.20210901
12
12
#
13
- # REGENDATA ("0.13.20210606 ",["github","--config=cabal.haskell-ci","text.cabal"])
13
+ # REGENDATA ("0.13.20210901 ",["github","--config=cabal.haskell-ci","text.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -26,14 +26,19 @@ jobs:
26
26
strategy :
27
27
matrix :
28
28
include :
29
+ - compiler : ghc-9.2.0.20210821
30
+ compilerKind : ghc
31
+ compilerVersion : 9.2.0.20210821
32
+ setup-method : ghcup
33
+ allow-failure : true
29
34
- compiler : ghc-9.0.1
30
35
compilerKind : ghc
31
36
compilerVersion : 9.0.1
32
37
setup-method : ghcup
33
38
allow-failure : false
34
- - compiler : ghc-8.10.4
39
+ - compiler : ghc-8.10.7
35
40
compilerKind : ghc
36
- compilerVersion : 8.10.4
41
+ compilerVersion : 8.10.7
37
42
setup-method : ghcup
38
43
allow-failure : false
39
44
- compiler : ghc-8.8.4
68
73
apt-get update
69
74
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
70
75
mkdir -p "$HOME/.ghcup/bin"
71
- curl -sL https://downloads.haskell.org/ghcup/0.1.14.1 /x86_64-linux-ghcup-0.1.14.1 > "$HOME/.ghcup/bin/ghcup"
76
+ curl -sL https://downloads.haskell.org/ghcup/0.1.16.2 /x86_64-linux-ghcup-0.1.16.2 > "$HOME/.ghcup/bin/ghcup"
72
77
chmod a+x "$HOME/.ghcup/bin/ghcup"
73
78
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
74
79
"$HOME/.ghcup/bin/ghcup" install cabal 3.4.0.0
92
97
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
93
98
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
94
99
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
95
- echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
100
+ if [ $((HCNUMVER >= 90200)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE= false" >> "$GITHUB_ENV" ; fi
96
101
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
97
102
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
98
103
env :
@@ -121,6 +126,17 @@ jobs:
121
126
repository hackage.haskell.org
122
127
url: http://hackage.haskell.org/
123
128
EOF
129
+ if $HEADHACKAGE; then
130
+ cat >> $CABAL_CONFIG <<EOF
131
+ repository head.hackage.ghc.haskell.org
132
+ url: https://ghc.gitlab.haskell.org/head.hackage/
133
+ secure: True
134
+ root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
135
+ 26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
136
+ f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
137
+ key-threshold: 3
138
+ EOF
139
+ fi
124
140
cat $CABAL_CONFIG
125
141
- name : versions
126
142
run : |
@@ -177,6 +193,9 @@ jobs:
177
193
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
178
194
cat >> cabal.project <<EOF
179
195
EOF
196
+ if $HEADHACKAGE; then
197
+ echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
198
+ fi
180
199
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(text)$/; }' >> cabal.project.local
181
200
cat cabal.project
182
201
cat cabal.project.local
0 commit comments