8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.18.1
11
+ # version: 0.19.20240702
12
12
#
13
- # REGENDATA ("0.18.1 ",["github","smtp-mail.cabal"])
13
+ # REGENDATA ("0.19.20240702 ",["github","smtp-mail.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -23,14 +23,14 @@ 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.6.4
31
+ - compiler : ghc-9.6.6
32
32
compilerKind : ghc
33
- compilerVersion : 9.6.4
33
+ compilerVersion : 9.6.6
34
34
setup-method : ghcup
35
35
allow-failure : false
36
36
fail-fast : false
43
43
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
44
44
chmod a+x "$HOME/.ghcup/bin/ghcup"
45
45
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
46
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
46
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.12.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
47
47
env :
48
48
HCKIND : ${{ matrix.compilerKind }}
49
49
HCNAME : ${{ matrix.compiler }}
61
61
echo "HC=$HC" >> "$GITHUB_ENV"
62
62
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
63
63
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
64
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
64
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
65
65
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
66
66
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
67
67
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -118,7 +118,7 @@ jobs:
118
118
chmod a+x $HOME/.cabal/bin/cabal-plan
119
119
cabal-plan --version
120
120
- name : checkout
121
- uses : actions/checkout@v3
121
+ uses : actions/checkout@v4
122
122
with :
123
123
path : source
124
124
- name : initial cabal.project for sdist
@@ -146,15 +146,15 @@ jobs:
146
146
echo " ghc-options: -Werror=missing-methods" >> cabal.project
147
147
cat >> cabal.project <<EOF
148
148
EOF
149
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(smtp-mail)$/; }' >> cabal.project.local
149
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(smtp-mail)$/; }' >> cabal.project.local
150
150
cat cabal.project
151
151
cat cabal.project.local
152
152
- name : dump install plan
153
153
run : |
154
154
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
155
155
cabal-plan
156
156
- name : restore cache
157
- uses : actions/cache/restore@v3
157
+ uses : actions/cache/restore@v4
158
158
with :
159
159
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
160
160
path : ~/.cabal/store
@@ -181,7 +181,7 @@ jobs:
181
181
rm -f cabal.project.local
182
182
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
183
183
- name : save cache
184
- uses : actions/cache/save@v3
184
+ uses : actions/cache/save@v4
185
185
if : always()
186
186
with :
187
187
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments