8
8
#
9
9
# For more information, see https://github.com/andreasabel/haskell-ci
10
10
#
11
- # version: 0.17.20231012
11
+ # version: 0.19.20240703
12
12
#
13
- # REGENDATA ("0.17.20231012 ",["--config=cabal.haskell-ci","github","cabal.project"])
13
+ # REGENDATA ("0.19.20240703 ",["--config=cabal.haskell-ci","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: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.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.6
46
46
compilerKind : ghc
47
- compilerVersion : 9.4.7
47
+ compilerVersion : 9.6.6
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
@@ -87,34 +92,17 @@ jobs:
87
92
compilerVersion : 8.0.2
88
93
setup-method : ghcup
89
94
allow-failure : false
90
- - compiler : ghc-7.10.3
91
- compilerKind : ghc
92
- compilerVersion : 7.10.3
93
- setup-method : hvr-ppa
94
- allow-failure : false
95
95
fail-fast : false
96
96
steps :
97
97
- name : apt
98
98
run : |
99
99
apt-get update
100
100
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
101
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
102
- mkdir -p "$HOME/.ghcup/bin"
103
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
104
- chmod a+x "$HOME/.ghcup/bin/ghcup"
105
- "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
106
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
107
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
108
- else
109
- apt-add-repository -y 'ppa:hvr/ghc'
110
- apt-get update
111
- apt-get install -y "$HCNAME"
112
- mkdir -p "$HOME/.ghcup/bin"
113
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
114
- chmod a+x "$HOME/.ghcup/bin/ghcup"
115
- "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
116
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
117
- fi
101
+ mkdir -p "$HOME/.ghcup/bin"
102
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
103
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
104
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
105
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
118
106
env :
119
107
HCKIND : ${{ matrix.compilerKind }}
120
108
HCNAME : ${{ matrix.compiler }}
@@ -126,22 +114,13 @@ jobs:
126
114
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
127
115
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
128
116
HCDIR=/opt/$HCKIND/$HCVER
129
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
130
- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
131
- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
132
- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
133
- echo "HC=$HC" >> "$GITHUB_ENV"
134
- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
135
- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
136
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
137
- else
138
- HC=$HCDIR/bin/$HCKIND
139
- echo "HC=$HC" >> "$GITHUB_ENV"
140
- echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
141
- echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
142
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
143
- fi
144
-
117
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
118
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
119
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
120
+ echo "HC=$HC" >> "$GITHUB_ENV"
121
+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
122
+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
123
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
145
124
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
146
125
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
147
126
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -237,15 +216,15 @@ jobs:
237
216
optimization: False
238
217
allow-newer: containers
239
218
EOF
240
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(github|github-samples)$/; }' >> cabal.project.local
219
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(github|github-samples)$/; }' >> cabal.project.local
241
220
cat cabal.project
242
221
cat cabal.project.local
243
222
- name : dump install plan
244
223
run : |
245
224
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
246
225
cabal-plan
247
226
- name : restore cache
248
- uses : actions/cache/restore@v3
227
+ uses : actions/cache/restore@v4
249
228
with :
250
229
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
251
230
path : ~/.cabal/store
@@ -287,7 +266,7 @@ jobs:
287
266
if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all ; fi
288
267
if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all ; fi
289
268
- name : save cache
290
- uses : actions/cache/save@v3
269
+ uses : actions/cache/save@v4
291
270
if : always()
292
271
with :
293
272
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments