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.18.0.20240225
11
+ # version: 0.19.20250216
12
12
#
13
- # REGENDATA ("0.18.0.20240225 ",["github","regex-base.cabal"])
13
+ # REGENDATA ("0.19.20250216 ",["github","regex-base.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.8.2
35
+ - compiler : ghc-9.12.1
36
36
compilerKind : ghc
37
- compilerVersion : 9.8.2
37
+ compilerVersion : 9.12.1
38
38
setup-method : ghcup
39
39
allow-failure : false
40
- - compiler : ghc-9.6.4
40
+ - compiler : ghc-9.10.1
41
41
compilerKind : ghc
42
- compilerVersion : 9.6.4
42
+ compilerVersion : 9.10.1
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.6
51
+ compilerKind : ghc
52
+ compilerVersion : 9.6.6
43
53
setup-method : ghcup
44
54
allow-failure : false
45
55
- compiler : ghc-9.4.8
@@ -89,15 +99,29 @@ jobs:
89
99
allow-failure : false
90
100
fail-fast : false
91
101
steps :
92
- - name : apt
102
+ - name : apt-get install
93
103
run : |
94
104
apt-get update
95
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 : |
96
108
mkdir -p "$HOME/.ghcup/bin"
97
- curl -sL https://downloads.haskell.org/ghcup/0.1.20 .0/x86_64-linux-ghcup-0.1.20 .0 > "$HOME/.ghcup/bin/ghcup"
109
+ curl -sL https://downloads.haskell.org/ghcup/0.1.30 .0/x86_64-linux-ghcup-0.1.30 .0 > "$HOME/.ghcup/bin/ghcup"
98
110
chmod a+x "$HOME/.ghcup/bin/ghcup"
111
+ - name : Install cabal-install
112
+ run : |
113
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
114
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
115
+ - name : Install GHC (GHCup)
116
+ if : matrix.setup-method == 'ghcup'
117
+ run : |
99
118
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
100
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.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"
101
125
env :
102
126
HCKIND : ${{ matrix.compilerKind }}
103
127
HCNAME : ${{ matrix.compiler }}
@@ -108,21 +132,12 @@ jobs:
108
132
echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
109
133
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
110
134
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
111
- HCDIR=/opt/$HCKIND/$HCVER
112
- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
113
- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
114
- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
115
- echo "HC=$HC" >> "$GITHUB_ENV"
116
- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
117
- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
118
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
119
135
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
120
136
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
121
137
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
122
138
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
123
139
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
124
140
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
125
- echo "GHCJSARITH=0" >> "$GITHUB_ENV"
126
141
env :
127
142
HCKIND : ${{ matrix.compilerKind }}
128
143
HCNAME : ${{ matrix.compiler }}
@@ -200,7 +215,7 @@ jobs:
200
215
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
201
216
cat >> cabal.project <<EOF
202
217
EOF
203
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(regex-base)$/; }' >> cabal.project.local
218
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(regex-base)$/; }' >> cabal.project.local
204
219
cat cabal.project
205
220
cat cabal.project.local
206
221
- name : dump install plan
@@ -234,30 +249,9 @@ jobs:
234
249
run : |
235
250
rm -f cabal.project.local
236
251
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
237
- - name : prepare for constraint sets
238
- run : |
239
- rm -f cabal.project.local
240
- - name : constraint set text-2.1
241
- run : |
242
- if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>= 2.1' all --dry-run ; fi
243
- if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then cabal-plan topo | sort ; fi
244
- if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>= 2.1' --dependencies-only -j2 all ; fi
245
- if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>= 2.1' all ; fi
246
- - name : constraint set containers-0.7
247
- run : |
248
- if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers ^>= 0.7' all --dry-run ; fi
249
- if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then cabal-plan topo | sort ; fi
250
- if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers ^>= 0.7' --dependencies-only -j2 all ; fi
251
- if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers ^>= 0.7' all ; fi
252
- - name : constraint set bytestring-0.12
253
- run : |
254
- if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring ^>= 0.12' all --dry-run ; fi
255
- if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then cabal-plan topo | sort ; fi
256
- if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring ^>= 0.12' --dependencies-only -j2 all ; fi
257
- if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring ^>= 0.12' all ; fi
258
252
- name : save cache
259
- uses : actions/cache/save@v4
260
253
if : always()
254
+ uses : actions/cache/save@v4
261
255
with :
262
256
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
263
257
path : ~/.cabal/store
0 commit comments