8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.17.20231219
11
+ # version: 0.19.20240608
12
12
#
13
- # REGENDATA ("0.17.20231219 ",["github","cabal.project"])
13
+ # REGENDATA ("0.19.20240608 ",["github","cabal.project"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -23,19 +23,24 @@ 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.8 .1
31
+ - compiler : ghc-9.10 .1
32
32
compilerKind : ghc
33
- compilerVersion : 9.8 .1
33
+ compilerVersion : 9.10 .1
34
34
setup-method : ghcup
35
35
allow-failure : false
36
- - compiler : ghc-9.6.3
36
+ - compiler : ghc-9.8.2
37
37
compilerKind : ghc
38
- compilerVersion : 9.6.3
38
+ compilerVersion : 9.8.2
39
+ setup-method : ghcup
40
+ allow-failure : false
41
+ - compiler : ghc-9.6.5
42
+ compilerKind : ghc
43
+ compilerVersion : 9.6.5
39
44
setup-method : ghcup
40
45
allow-failure : false
41
46
- compiler : ghc-9.4.8
@@ -61,39 +66,29 @@ 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
fail-fast : false
77
82
steps :
78
83
- name : apt
79
84
run : |
80
85
apt-get update
81
- apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
82
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
83
- mkdir -p "$HOME/.ghcup/bin"
84
- curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
85
- chmod a+x "$HOME/.ghcup/bin/ghcup"
86
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
87
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
88
- else
89
- apt-add-repository -y 'ppa:hvr/ghc'
90
- apt-get update
91
- apt-get install -y "$HCNAME"
92
- mkdir -p "$HOME/.ghcup/bin"
93
- curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
94
- chmod a+x "$HOME/.ghcup/bin/ghcup"
95
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
96
- fi
86
+ apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
87
+ mkdir -p "$HOME/.ghcup/bin"
88
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
89
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
90
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
91
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
97
92
env :
98
93
HCKIND : ${{ matrix.compilerKind }}
99
94
HCNAME : ${{ matrix.compiler }}
@@ -105,22 +100,13 @@ jobs:
105
100
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
106
101
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
107
102
HCDIR=/opt/$HCKIND/$HCVER
108
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
109
- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
110
- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
111
- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
112
- echo "HC=$HC" >> "$GITHUB_ENV"
113
- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
114
- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
115
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
116
- else
117
- HC=$HCDIR/bin/$HCKIND
118
- echo "HC=$HC" >> "$GITHUB_ENV"
119
- echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
120
- echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
121
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
122
- fi
123
-
103
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
104
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
105
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
106
+ echo "HC=$HC" >> "$GITHUB_ENV"
107
+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
108
+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
109
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
124
110
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
125
111
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
126
112
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -177,7 +163,7 @@ jobs:
177
163
chmod a+x $HOME/.cabal/bin/cabal-plan
178
164
cabal-plan --version
179
165
- name : checkout
180
- uses : actions/checkout@v3
166
+ uses : actions/checkout@v4
181
167
with :
182
168
path : source
183
169
- name : initial cabal.project for sdist
@@ -211,15 +197,15 @@ jobs:
211
197
echo " ghc-options: -Werror=missing-methods" >> cabal.project
212
198
cat >> cabal.project <<EOF
213
199
EOF
214
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(bytestring|directory|htar|tar|unix)$/; }' >> cabal.project.local
200
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(bytestring|directory|htar|tar|unix)$/; }' >> cabal.project.local
215
201
cat cabal.project
216
202
cat cabal.project.local
217
203
- name : dump install plan
218
204
run : |
219
205
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
220
206
cabal-plan
221
207
- name : restore cache
222
- uses : actions/cache/restore@v3
208
+ uses : actions/cache/restore@v4
223
209
with :
224
210
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
225
211
path : ~/.cabal/store
@@ -251,7 +237,7 @@ jobs:
251
237
rm -f cabal.project.local
252
238
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
253
239
- name : save cache
254
- uses : actions/cache/save@v3
240
+ uses : actions/cache/save@v4
255
241
if : always()
256
242
with :
257
243
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments