8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.16.6.20230729
11
+ # version: 0.19.20250216
12
12
#
13
- # REGENDATA ("0.16.6.20230729 ",["github","regex-compat.cabal"])
13
+ # REGENDATA ("0.19.20250216 ",["github","regex-compat.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
23
23
jobs :
24
24
linux :
25
25
name : Haskell-CI - Linux - ${{ matrix.compiler }}
26
- runs-on : ubuntu-20 .04
26
+ runs-on : ubuntu-24 .04
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.6.2
35
+ - compiler : ghc-9.12.1
36
36
compilerKind : ghc
37
- compilerVersion : 9.6.2
37
+ compilerVersion : 9.12.1
38
38
setup-method : ghcup
39
39
allow-failure : false
40
- - compiler : ghc-9.4.5
40
+ - compiler : ghc-9.10.1
41
41
compilerKind : ghc
42
- compilerVersion : 9.4.5
42
+ compilerVersion : 9.10.1
43
+ setup-method : ghcup
44
+ allow-failure : false
45
+ - compiler : ghc-9.8.4
46
+ compilerKind : ghc
47
+ compilerVersion : 9.8.4
48
+ setup-method : ghcup
49
+ allow-failure : false
50
+ - compiler : ghc-9.6.6
51
+ compilerKind : ghc
52
+ compilerVersion : 9.6.6
53
+ setup-method : ghcup
54
+ allow-failure : false
55
+ - compiler : ghc-9.4.8
56
+ compilerKind : ghc
57
+ compilerVersion : 9.4.8
43
58
setup-method : ghcup
44
59
allow-failure : false
45
60
- compiler : ghc-9.2.8
@@ -60,79 +75,53 @@ jobs:
60
75
- compiler : ghc-8.8.4
61
76
compilerKind : ghc
62
77
compilerVersion : 8.8.4
63
- setup-method : hvr-ppa
78
+ setup-method : ghcup
64
79
allow-failure : false
65
80
- compiler : ghc-8.6.5
66
81
compilerKind : ghc
67
82
compilerVersion : 8.6.5
68
- setup-method : hvr-ppa
83
+ setup-method : ghcup
69
84
allow-failure : false
70
85
- compiler : ghc-8.4.4
71
86
compilerKind : ghc
72
87
compilerVersion : 8.4.4
73
- setup-method : hvr-ppa
88
+ setup-method : ghcup
74
89
allow-failure : false
75
90
- compiler : ghc-8.2.2
76
91
compilerKind : ghc
77
92
compilerVersion : 8.2.2
78
- setup-method : hvr-ppa
93
+ setup-method : ghcup
79
94
allow-failure : false
80
95
- compiler : ghc-8.0.2
81
96
compilerKind : ghc
82
97
compilerVersion : 8.0.2
83
- setup-method : hvr-ppa
84
- allow-failure : false
85
- - compiler : ghc-7.10.3
86
- compilerKind : ghc
87
- compilerVersion : 7.10.3
88
- setup-method : hvr-ppa
89
- allow-failure : false
90
- - compiler : ghc-7.8.4
91
- compilerKind : ghc
92
- compilerVersion : 7.8.4
93
- setup-method : hvr-ppa
94
- allow-failure : false
95
- - compiler : ghc-7.6.3
96
- compilerKind : ghc
97
- compilerVersion : 7.6.3
98
- setup-method : hvr-ppa
99
- allow-failure : false
100
- - compiler : ghc-7.4.2
101
- compilerKind : ghc
102
- compilerVersion : 7.4.2
103
- setup-method : hvr-ppa
104
- allow-failure : false
105
- - compiler : ghc-7.2.2
106
- compilerKind : ghc
107
- compilerVersion : 7.2.2
108
- setup-method : hvr-ppa
109
- allow-failure : false
110
- - compiler : ghc-7.0.4
111
- compilerKind : ghc
112
- compilerVersion : 7.0.4
113
- setup-method : hvr-ppa
98
+ setup-method : ghcup
114
99
allow-failure : false
115
100
fail-fast : false
116
101
steps :
117
- - name : apt
102
+ - name : apt-get install
118
103
run : |
119
104
apt-get update
120
- apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
121
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
122
- mkdir -p "$HOME/.ghcup/bin"
123
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
124
- chmod a+x "$HOME/.ghcup/bin/ghcup"
125
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
126
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
127
- else
128
- apt-add-repository -y 'ppa:hvr/ghc'
129
- apt-get update
130
- apt-get install -y "$HCNAME"
131
- mkdir -p "$HOME/.ghcup/bin"
132
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
133
- chmod a+x "$HOME/.ghcup/bin/ghcup"
134
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
135
- fi
105
+ apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
106
+ - name : Install GHCup
107
+ run : |
108
+ mkdir -p "$HOME/.ghcup/bin"
109
+ curl -sL https://downloads.haskell.org/ghcup/0.1.30.0/x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
110
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
111
+ - name : Install cabal-install
112
+ run : |
113
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
114
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
115
+ - name : Install GHC (GHCup)
116
+ if : matrix.setup-method == 'ghcup'
117
+ run : |
118
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
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"
136
125
env :
137
126
HCKIND : ${{ matrix.compilerKind }}
138
127
HCNAME : ${{ matrix.compiler }}
@@ -143,28 +132,12 @@ jobs:
143
132
echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
144
133
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
145
134
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
146
- HCDIR=/opt/$HCKIND/$HCVER
147
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
148
- HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
149
- echo "HC=$HC" >> "$GITHUB_ENV"
150
- echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
151
- echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
152
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
153
- else
154
- HC=$HCDIR/bin/$HCKIND
155
- echo "HC=$HC" >> "$GITHUB_ENV"
156
- echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
157
- echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
158
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
159
- fi
160
-
161
135
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
162
136
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
163
137
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
164
138
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
165
139
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
166
140
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
167
- echo "GHCJSARITH=0" >> "$GITHUB_ENV"
168
141
env :
169
142
HCKIND : ${{ matrix.compilerKind }}
170
143
HCNAME : ${{ matrix.compiler }}
@@ -214,7 +187,7 @@ jobs:
214
187
chmod a+x $HOME/.cabal/bin/cabal-plan
215
188
cabal-plan --version
216
189
- name : checkout
217
- uses : actions/checkout@v3
190
+ uses : actions/checkout@v4
218
191
with :
219
192
path : source
220
193
- name : initial cabal.project for sdist
@@ -242,15 +215,15 @@ jobs:
242
215
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
243
216
cat >> cabal.project <<EOF
244
217
EOF
245
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(regex-compat)$/; }' >> cabal.project.local
218
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(regex-compat)$/; }' >> cabal.project.local
246
219
cat cabal.project
247
220
cat cabal.project.local
248
221
- name : dump install plan
249
222
run : |
250
223
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
251
224
cabal-plan
252
225
- name : restore cache
253
- uses : actions/cache/restore@v3
226
+ uses : actions/cache/restore@v4
254
227
with :
255
228
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
256
229
path : ~/.cabal/store
@@ -277,8 +250,8 @@ jobs:
277
250
rm -f cabal.project.local
278
251
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
279
252
- name : save cache
280
- uses : actions/cache/save@v3
281
253
if : always()
254
+ uses : actions/cache/save@v4
282
255
with :
283
256
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
284
257
path : ~/.cabal/store
0 commit comments