1
1
# This GitHub workflow config has been generated by a script via
2
2
#
3
- # haskell-ci 'github' 'unordered-containers. cabal'
3
+ # haskell-ci 'github' 'cabal.project '
4
4
#
5
5
# To regenerate the script (for example after adjusting tested-with) run
6
6
#
7
7
# haskell-ci regenerate
8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.15.20220808
11
+ # version: 0.17.20231010
12
12
#
13
- # REGENDATA ("0.15.20220808 ",["github","unordered-containers. cabal"])
13
+ # REGENDATA ("0.17.20231010 ",["github","cabal.project "])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -32,14 +32,24 @@ jobs:
32
32
strategy :
33
33
matrix :
34
34
include :
35
- - compiler : ghc-9.4 .1
35
+ - compiler : ghc-9.8 .1
36
36
compilerKind : ghc
37
- compilerVersion : 9.4 .1
37
+ compilerVersion : 9.8 .1
38
38
setup-method : ghcup
39
39
allow-failure : false
40
- - compiler : ghc-9.2.4
40
+ - compiler : ghc-9.6.3
41
41
compilerKind : ghc
42
- compilerVersion : 9.2.4
42
+ compilerVersion : 9.6.3
43
+ setup-method : ghcup
44
+ allow-failure : false
45
+ - compiler : ghc-9.4.7
46
+ compilerKind : ghc
47
+ compilerVersion : 9.4.7
48
+ setup-method : ghcup
49
+ allow-failure : false
50
+ - compiler : ghc-9.2.8
51
+ compilerKind : ghc
52
+ compilerVersion : 9.2.8
43
53
setup-method : ghcup
44
54
allow-failure : false
45
55
- compiler : ghc-9.0.2
@@ -79,10 +89,10 @@ jobs:
79
89
apt-get update
80
90
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
81
91
mkdir -p "$HOME/.ghcup/bin"
82
- curl -sL https://downloads.haskell.org/ghcup/0.1.18.0 /x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
92
+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
83
93
chmod a+x "$HOME/.ghcup/bin/ghcup"
84
94
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
85
- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
95
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
86
96
env :
87
97
HCKIND : ${{ matrix.compilerKind }}
88
98
HCNAME : ${{ matrix.compiler }}
@@ -94,11 +104,13 @@ jobs:
94
104
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
95
105
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
96
106
HCDIR=/opt/$HCKIND/$HCVER
97
- HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
107
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
108
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
109
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
98
110
echo "HC=$HC" >> "$GITHUB_ENV"
99
- echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER " >> "$GITHUB_ENV"
100
- echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER " >> "$GITHUB_ENV"
101
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
111
+ echo "HCPKG=$HCPKG " >> "$GITHUB_ENV"
112
+ echo "HADDOCK=$HADDOCK " >> "$GITHUB_ENV"
113
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
102
114
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
103
115
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
104
116
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -148,14 +160,14 @@ jobs:
148
160
- name : install cabal-plan
149
161
run : |
150
162
mkdir -p $HOME/.cabal/bin
151
- curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.6.2 .0/cabal-plan-0.6.2 .0-x86_64-linux.xz > cabal-plan.xz
152
- echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
163
+ curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.7.3 .0/cabal-plan-0.7.3 .0-x86_64-linux.xz > cabal-plan.xz
164
+ echo 'f62ccb2971567a5f638f2005ad3173dba14693a45154c1508645c52289714cb2 cabal-plan.xz' | sha256sum -c -
153
165
xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
154
166
rm -f cabal-plan.xz
155
167
chmod a+x $HOME/.cabal/bin/cabal-plan
156
168
cabal-plan --version
157
169
- name : checkout
158
- uses : actions/checkout@v2
170
+ uses : actions/checkout@v3
159
171
with :
160
172
path : source
161
173
- name : initial cabal.project for sdist
@@ -182,6 +194,9 @@ jobs:
182
194
echo "package unordered-containers" >> cabal.project
183
195
echo " ghc-options: -Werror=missing-methods" >> cabal.project
184
196
cat >> cabal.project <<EOF
197
+ allow-newer: nothunks:bytestring
198
+ allow-newer: nothunks:text
199
+ allow-newer: ChasingBottoms:base
185
200
EOF
186
201
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(binary|containers|unordered-containers)$/; }' >> cabal.project.local
187
202
cat cabal.project
@@ -190,8 +205,8 @@ jobs:
190
205
run : |
191
206
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
192
207
cabal-plan
193
- - name : cache
194
- uses : actions/cache@v2
208
+ - name : restore cache
209
+ uses : actions/cache/restore@v3
195
210
with :
196
211
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
197
212
path : ~/.cabal/store
@@ -215,7 +230,7 @@ jobs:
215
230
${CABAL} -vnormal check
216
231
- name : haddock
217
232
run : |
218
- if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then $CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all ; fi
233
+ if [ $((HCNUMVER >= 90000)) -ne 0 ] ; then $CABAL v2-haddock --disable-documentation -- haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all ; fi
219
234
- name : unconstrained build
220
235
run : |
221
236
rm -f cabal.project.local
@@ -225,6 +240,14 @@ jobs:
225
240
rm -f cabal.project.local
226
241
- name : constraint set debug
227
242
run : |
243
+ $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='unordered-containers +debug' all --dry-run
244
+ cabal-plan topo | sort
228
245
$CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='unordered-containers +debug' --dependencies-only -j2 all
229
246
$CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='unordered-containers +debug' all
230
247
$CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='unordered-containers +debug' all
248
+ - name : save cache
249
+ uses : actions/cache/save@v3
250
+ if : always()
251
+ with :
252
+ key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
253
+ path : ~/.cabal/store
0 commit comments