8
8
#
9
9
# For more information, see https://github.com/andreasabel/haskell-ci
10
10
#
11
- # version: 0.19.20240403
11
+ # version: 0.19.20240703
12
12
#
13
- # REGENDATA ("0.19.20240403 ",["github","HTTP.cabal"])
13
+ # REGENDATA ("0.19.20240703 ",["github","HTTP.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -27,24 +27,24 @@ jobs:
27
27
timeout-minutes :
28
28
60
29
29
container :
30
- image : buildpack-deps:focal
30
+ image : buildpack-deps:jammy
31
31
continue-on-error : ${{ matrix.allow-failure }}
32
32
strategy :
33
33
matrix :
34
34
include :
35
- - compiler : ghc-9.10.0.20240328
35
+ - compiler : ghc-9.10.1
36
36
compilerKind : ghc
37
- compilerVersion : 9.10.0.20240328
37
+ compilerVersion : 9.10.1
38
38
setup-method : ghcup
39
39
allow-failure : false
40
40
- compiler : ghc-9.8.2
41
41
compilerKind : ghc
42
42
compilerVersion : 9.8.2
43
43
setup-method : ghcup
44
44
allow-failure : false
45
- - compiler : ghc-9.6.4
45
+ - compiler : ghc-9.6.6
46
46
compilerKind : ghc
47
- compilerVersion : 9.6.4
47
+ compilerVersion : 9.6.6
48
48
setup-method : ghcup
49
49
allow-failure : false
50
50
- compiler : ghc-9.4.8
87
87
compilerVersion : 8.2.2
88
88
setup-method : ghcup
89
89
allow-failure : false
90
- - compiler : ghc-8.0.2
91
- compilerKind : ghc
92
- compilerVersion : 8.0.2
93
- setup-method : ghcup
94
- allow-failure : false
95
90
fail-fast : false
96
91
steps :
97
92
- name : apt
101
96
mkdir -p "$HOME/.ghcup/bin"
102
97
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
103
98
chmod a+x "$HOME/.ghcup/bin/ghcup"
104
- "$HOME/.ghcup/bin/ghcup" config add-release-channel https://github.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
105
99
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
106
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.3 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
100
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.12.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
107
101
env :
108
102
HCKIND : ${{ matrix.compilerKind }}
109
103
HCNAME : ${{ matrix.compiler }}
@@ -121,12 +115,12 @@ jobs:
121
115
echo "HC=$HC" >> "$GITHUB_ENV"
122
116
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
123
117
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
124
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.3 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
118
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
125
119
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
126
120
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
127
121
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
128
122
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
129
- if [ $((HCNUMVER >= 91000)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE= false" >> "$GITHUB_ENV" ; fi
123
+ echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
130
124
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
131
125
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
132
126
env :
@@ -155,18 +149,6 @@ jobs:
155
149
repository hackage.haskell.org
156
150
url: http://hackage.haskell.org/
157
151
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
170
152
cat >> $CABAL_CONFIG <<EOF
171
153
program-default-options
172
154
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -214,14 +196,11 @@ jobs:
214
196
touch cabal.project
215
197
touch cabal.project.local
216
198
echo "packages: ${PKGDIR_HTTP}" >> cabal.project
217
- if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package HTTP" >> cabal.project ; fi
218
- if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
199
+ echo "package HTTP" >> cabal.project
200
+ echo " ghc-options: -Werror=missing-methods" >> cabal.project
219
201
cat >> cabal.project <<EOF
220
202
EOF
221
- if $HEADHACKAGE; then
222
- echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
223
- fi
224
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(HTTP)$/; }' >> cabal.project.local
203
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(HTTP)$/; }' >> cabal.project.local
225
204
cat cabal.project
226
205
cat cabal.project.local
227
206
- name : dump install plan
0 commit comments