6
6
#
7
7
# haskell-ci regenerate
8
8
#
9
- # For more information, see https://github.com/andreasabel /haskell-ci
9
+ # For more information, see https://github.com/haskell-CI /haskell-ci
10
10
#
11
- # version: 0.17.20231012
11
+ # version: 0.19.20250506
12
12
#
13
- # REGENDATA ("0.17.20231012 ",["github","deepseq-generics.cabal"])
13
+ # REGENDATA ("0.19.20250506 ",["github","deepseq-generics.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: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.6.1
35
+ - compiler : ghc-9.12.2
36
36
compilerKind : ghc
37
- compilerVersion : 9.6.1
37
+ compilerVersion : 9.12.2
38
38
setup-method : ghcup
39
39
allow-failure : false
40
- - compiler : ghc-9.4.7
40
+ - compiler : ghc-9.10.2
41
41
compilerKind : ghc
42
- compilerVersion : 9.4.7
42
+ compilerVersion : 9.10.2
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.7
51
+ compilerKind : ghc
52
+ compilerVersion : 9.6.7
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
@@ -84,16 +99,29 @@ jobs:
84
99
allow-failure : false
85
100
fail-fast : false
86
101
steps :
87
- - name : apt
102
+ - name : apt-get install
88
103
run : |
89
104
apt-get update
90
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 : |
91
108
mkdir -p "$HOME/.ghcup/bin"
92
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
109
+ curl -sL https://downloads.haskell.org/ghcup/0.1.50.1 /x86_64-linux-ghcup-0.1.50.1 > "$HOME/.ghcup/bin/ghcup"
93
110
chmod a+x "$HOME/.ghcup/bin/ghcup"
94
- "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
111
+ - name : Install cabal-install
112
+ run : |
113
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.14.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
114
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
115
+ - name : Install GHC (GHCup)
116
+ if : matrix.setup-method == 'ghcup'
117
+ run : |
95
118
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
96
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (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"
97
125
env :
98
126
HCKIND : ${{ matrix.compilerKind }}
99
127
HCNAME : ${{ matrix.compiler }}
@@ -104,21 +132,12 @@ jobs:
104
132
echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
105
133
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
106
134
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
107
- HCDIR=/opt/$HCKIND/$HCVER
108
- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
109
- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
110
- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
111
- echo "HC=$HC" >> "$GITHUB_ENV"
112
- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
113
- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
114
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
115
135
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
116
136
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
117
137
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
118
138
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
119
139
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
120
140
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
121
- echo "GHCJSARITH=0" >> "$GITHUB_ENV"
122
141
env :
123
142
HCKIND : ${{ matrix.compilerKind }}
124
143
HCNAME : ${{ matrix.compiler }}
@@ -196,15 +215,15 @@ jobs:
196
215
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
197
216
cat >> cabal.project <<EOF
198
217
EOF
199
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(deepseq-generics)$/; }' >> cabal.project.local
218
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(deepseq-generics)$/; }' >> cabal.project.local
200
219
cat cabal.project
201
220
cat cabal.project.local
202
221
- name : dump install plan
203
222
run : |
204
223
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
205
224
cabal-plan
206
225
- name : restore cache
207
- uses : actions/cache/restore@v3
226
+ uses : actions/cache/restore@v4
208
227
with :
209
228
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
210
229
path : ~/.cabal/store
@@ -234,8 +253,8 @@ jobs:
234
253
rm -f cabal.project.local
235
254
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
236
255
- name : save cache
237
- uses : actions/cache/save@v3
238
256
if : always()
257
+ uses : actions/cache/save@v4
239
258
with :
240
259
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
241
260
path : ~/.cabal/store
0 commit comments