8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.17.20231203
11
+ # version: 0.19.20240608
12
12
#
13
- # REGENDATA ("0.17.20231203 ",["github","ghc-events.cabal"])
13
+ # REGENDATA ("0.19.20240608 ",["github","ghc-events.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -23,11 +23,16 @@ jobs:
23
23
timeout-minutes :
24
24
60
25
25
container :
26
- image : buildpack-deps:bionic
26
+ image : buildpack-deps:jammy
27
27
continue-on-error : ${{ matrix.allow-failure }}
28
28
strategy :
29
29
matrix :
30
30
include :
31
+ - compiler : ghc-9.10.1
32
+ compilerKind : ghc
33
+ compilerVersion : 9.10.1
34
+ setup-method : ghcup
35
+ allow-failure : false
31
36
- compiler : ghc-9.8.1
32
37
compilerKind : ghc
33
38
compilerVersion : 9.8.1
@@ -61,49 +66,39 @@ jobs:
61
66
- compiler : ghc-8.8.4
62
67
compilerKind : ghc
63
68
compilerVersion : 8.8.4
64
- setup-method : hvr-ppa
69
+ setup-method : ghcup
65
70
allow-failure : false
66
71
- compiler : ghc-8.6.5
67
72
compilerKind : ghc
68
73
compilerVersion : 8.6.5
69
- setup-method : hvr-ppa
74
+ setup-method : ghcup
70
75
allow-failure : false
71
76
- compiler : ghc-8.4.4
72
77
compilerKind : ghc
73
78
compilerVersion : 8.4.4
74
- setup-method : hvr-ppa
79
+ setup-method : ghcup
75
80
allow-failure : false
76
81
- compiler : ghc-8.2.2
77
82
compilerKind : ghc
78
83
compilerVersion : 8.2.2
79
- setup-method : hvr-ppa
84
+ setup-method : ghcup
80
85
allow-failure : false
81
86
- compiler : ghc-8.0.2
82
87
compilerKind : ghc
83
88
compilerVersion : 8.0.2
84
- setup-method : hvr-ppa
89
+ setup-method : ghcup
85
90
allow-failure : false
86
91
fail-fast : false
87
92
steps :
88
93
- name : apt
89
94
run : |
90
95
apt-get update
91
- apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
92
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
93
- mkdir -p "$HOME/.ghcup/bin"
94
- curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
95
- chmod a+x "$HOME/.ghcup/bin/ghcup"
96
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
97
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
98
- else
99
- apt-add-repository -y 'ppa:hvr/ghc'
100
- apt-get update
101
- apt-get install -y "$HCNAME"
102
- mkdir -p "$HOME/.ghcup/bin"
103
- curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
104
- chmod a+x "$HOME/.ghcup/bin/ghcup"
105
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
106
- fi
96
+ apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
97
+ mkdir -p "$HOME/.ghcup/bin"
98
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
99
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
100
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
101
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
107
102
env :
108
103
HCKIND : ${{ matrix.compilerKind }}
109
104
HCNAME : ${{ matrix.compiler }}
@@ -115,22 +110,13 @@ jobs:
115
110
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
116
111
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
117
112
HCDIR=/opt/$HCKIND/$HCVER
118
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
119
- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
120
- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
121
- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
122
- echo "HC=$HC" >> "$GITHUB_ENV"
123
- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
124
- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
125
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
126
- else
127
- HC=$HCDIR/bin/$HCKIND
128
- echo "HC=$HC" >> "$GITHUB_ENV"
129
- echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
130
- echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
131
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
132
- fi
133
-
113
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
114
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
115
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
116
+ echo "HC=$HC" >> "$GITHUB_ENV"
117
+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
118
+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
119
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
134
120
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
135
121
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
136
122
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -187,7 +173,7 @@ jobs:
187
173
chmod a+x $HOME/.cabal/bin/cabal-plan
188
174
cabal-plan --version
189
175
- name : checkout
190
- uses : actions/checkout@v3
176
+ uses : actions/checkout@v4
191
177
with :
192
178
path : source
193
179
- name : initial cabal.project for sdist
@@ -215,15 +201,15 @@ jobs:
215
201
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
216
202
cat >> cabal.project <<EOF
217
203
EOF
218
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(ghc-events)$/; }' >> cabal.project.local
204
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(ghc-events)$/; }' >> cabal.project.local
219
205
cat cabal.project
220
206
cat cabal.project.local
221
207
- name : dump install plan
222
208
run : |
223
209
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
224
210
cabal-plan
225
211
- name : restore cache
226
- uses : actions/cache/restore@v3
212
+ uses : actions/cache/restore@v4
227
213
with :
228
214
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
229
215
path : ~/.cabal/store
@@ -253,7 +239,7 @@ jobs:
253
239
rm -f cabal.project.local
254
240
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
255
241
- name : save cache
256
- uses : actions/cache/save@v3
242
+ uses : actions/cache/save@v4
257
243
if : always()
258
244
with :
259
245
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments