8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.17.20231010
11
+ # version: 0.19.20240514
12
12
#
13
- # REGENDATA ("0.17.20231010 ",["github","cabal.project"])
13
+ # REGENDATA ("0.19.20240514 ",["github","cabal.project"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -27,24 +27,29 @@ jobs:
27
27
timeout-minutes :
28
28
60
29
29
container :
30
- image : buildpack-deps:bionic
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.8 .1
35
+ - compiler : ghc-9.10 .1
36
36
compilerKind : ghc
37
- compilerVersion : 9.8 .1
37
+ compilerVersion : 9.10 .1
38
38
setup-method : ghcup
39
39
allow-failure : false
40
- - compiler : ghc-9.6.3
40
+ - compiler : ghc-9.8.2
41
41
compilerKind : ghc
42
- compilerVersion : 9.6.3
42
+ compilerVersion : 9.8.2
43
43
setup-method : ghcup
44
44
allow-failure : false
45
- - compiler : ghc-9.4.7
45
+ - compiler : ghc-9.6.5
46
46
compilerKind : ghc
47
- compilerVersion : 9.4.7
47
+ compilerVersion : 9.6.5
48
+ setup-method : ghcup
49
+ allow-failure : false
50
+ - compiler : ghc-9.4.8
51
+ compilerKind : ghc
52
+ compilerVersion : 9.4.8
48
53
setup-method : ghcup
49
54
allow-failure : false
50
55
- compiler : ghc-9.2.8
@@ -65,44 +70,24 @@ jobs:
65
70
- compiler : ghc-8.8.4
66
71
compilerKind : ghc
67
72
compilerVersion : 8.8.4
68
- setup-method : hvr-ppa
73
+ setup-method : ghcup
69
74
allow-failure : false
70
75
- compiler : ghc-8.6.5
71
76
compilerKind : ghc
72
77
compilerVersion : 8.6.5
73
- setup-method : hvr-ppa
74
- allow-failure : false
75
- - compiler : ghc-8.4.4
76
- compilerKind : ghc
77
- compilerVersion : 8.4.4
78
- setup-method : hvr-ppa
79
- allow-failure : false
80
- - compiler : ghc-8.2.2
81
- compilerKind : ghc
82
- compilerVersion : 8.2.2
83
- setup-method : hvr-ppa
78
+ setup-method : ghcup
84
79
allow-failure : false
85
80
fail-fast : false
86
81
steps :
87
82
- name : apt
88
83
run : |
89
84
apt-get update
90
85
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
91
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
92
- mkdir -p "$HOME/.ghcup/bin"
93
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
94
- chmod a+x "$HOME/.ghcup/bin/ghcup"
95
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
96
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
97
- else
98
- apt-add-repository -y 'ppa:hvr/ghc'
99
- apt-get update
100
- apt-get install -y "$HCNAME"
101
- mkdir -p "$HOME/.ghcup/bin"
102
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
103
- chmod a+x "$HOME/.ghcup/bin/ghcup"
104
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
105
- fi
86
+ mkdir -p "$HOME/.ghcup/bin"
87
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
88
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
89
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
90
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
106
91
env :
107
92
HCKIND : ${{ matrix.compilerKind }}
108
93
HCNAME : ${{ matrix.compiler }}
@@ -114,22 +99,13 @@ jobs:
114
99
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
115
100
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
116
101
HCDIR=/opt/$HCKIND/$HCVER
117
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
118
- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
119
- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
120
- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
121
- echo "HC=$HC" >> "$GITHUB_ENV"
122
- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
123
- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
124
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
125
- else
126
- HC=$HCDIR/bin/$HCKIND
127
- echo "HC=$HC" >> "$GITHUB_ENV"
128
- echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
129
- echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
130
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
131
- fi
132
-
102
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
103
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
104
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
105
+ echo "HC=$HC" >> "$GITHUB_ENV"
106
+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
107
+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
108
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
133
109
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
134
110
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
135
111
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -188,14 +164,14 @@ jobs:
188
164
- name : install cabal-docspec
189
165
run : |
190
166
mkdir -p $HOME/.cabal/bin
191
- curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20230517 /cabal-docspec-0.0.0.20230517 -x86_64-linux.xz > cabal-docspec.xz
192
- echo '3b31bbe463ad4d671abbc103db49628562ec48a6604cab278207b5b6acd21ed7 cabal-docspec.xz' | sha256sum -c -
167
+ curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20240414 /cabal-docspec-0.0.0.20240414 -x86_64-linux.xz > cabal-docspec.xz
168
+ echo '2d18a3f79619e8ec5f11870f926f6dc2616e02a6c889315b7f82044b95a1adb9 cabal-docspec.xz' | sha256sum -c -
193
169
xz -d < cabal-docspec.xz > $HOME/.cabal/bin/cabal-docspec
194
170
rm -f cabal-docspec.xz
195
171
chmod a+x $HOME/.cabal/bin/cabal-docspec
196
172
cabal-docspec --version
197
173
- name : checkout
198
- uses : actions/checkout@v3
174
+ uses : actions/checkout@v4
199
175
with :
200
176
path : source
201
177
- name : initial cabal.project for sdist
@@ -223,15 +199,15 @@ jobs:
223
199
echo " ghc-options: -Werror=missing-methods" >> cabal.project
224
200
cat >> cabal.project <<EOF
225
201
EOF
226
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(http-api-data)$/; }' >> cabal.project.local
202
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(http-api-data)$/; }' >> cabal.project.local
227
203
cat cabal.project
228
204
cat cabal.project.local
229
205
- name : dump install plan
230
206
run : |
231
207
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
232
208
cabal-plan
233
209
- name : restore cache
234
- uses : actions/cache/restore@v3
210
+ uses : actions/cache/restore@v4
235
211
with :
236
212
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
237
213
path : ~/.cabal/store
@@ -274,7 +250,7 @@ jobs:
274
250
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='http-api-data +use-text-show' --dependencies-only -j2 all
275
251
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='http-api-data +use-text-show' all
276
252
- name : save cache
277
- uses : actions/cache/save@v3
253
+ uses : actions/cache/save@v4
278
254
if : always()
279
255
with :
280
256
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments