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.20240630
12
12
#
13
- # REGENDATA ("0.17.20231012 ",["github","hackage-server.cabal"])
13
+ # REGENDATA ("0.19.20240630 ",["github","hackage-server.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -32,19 +32,24 @@ jobs:
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
@@ -74,11 +79,10 @@ jobs:
74
79
apt-get update
75
80
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
76
81
mkdir -p "$HOME/.ghcup/bin"
77
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
82
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0 /x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
78
83
chmod a+x "$HOME/.ghcup/bin/ghcup"
79
- "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
80
84
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
81
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10 .1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
85
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.12 .1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
82
86
apt-get update
83
87
apt-get install -y libbrotli-dev libgd-dev
84
88
env :
98
102
echo "HC=$HC" >> "$GITHUB_ENV"
99
103
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
100
104
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
101
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10 .1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
105
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.12 .1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
102
106
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
103
107
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
104
108
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV" ; else echo "ARG_TESTS=--disable-tests" >> "$GITHUB_ENV" ; fi
@@ -183,15 +187,15 @@ jobs:
183
187
echo " ghc-options: -Werror=missing-methods" >> cabal.project
184
188
cat >> cabal.project <<EOF
185
189
EOF
186
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(Cabal|Cabal-syntax|hackage-server|parsec|process|text)$/; }' >> cabal.project.local
190
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(Cabal|Cabal-syntax|hackage-server|parsec|process|text)$/; }' >> cabal.project.local
187
191
cat cabal.project
188
192
cat cabal.project.local
189
193
- name : dump install plan
190
194
run : |
191
195
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
192
196
cabal-plan
193
197
- name : restore cache
194
- uses : actions/cache/restore@v3
198
+ uses : actions/cache/restore@v4
195
199
with :
196
200
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
197
201
path : ~/.cabal/store
@@ -221,7 +225,7 @@ jobs:
221
225
rm -f cabal.project.local
222
226
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
223
227
- name : save cache
224
- uses : actions/cache/save@v3
228
+ uses : actions/cache/save@v4
225
229
if : always()
226
230
with :
227
231
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments