Skip to content

Commit a8f6e9b

Browse files
committed
CI: constraint-set bytestring-0.12
1 parent 771ac3b commit a8f6e9b

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ jobs:
231231
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package regex-tdfa" >> cabal.project ; fi
232232
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
233233
cat >> cabal.project <<EOF
234+
allow-newer: bytestring
234235
EOF
235236
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(Cabal|regex-tdfa|text)$/; }' >> cabal.project.local
236237
cat cabal.project
@@ -272,10 +273,10 @@ jobs:
272273
- name: prepare for constraint sets
273274
run: |
274275
rm -f cabal.project.local
275-
- name: constraint set mtl-2.3
276+
- name: constraint set bytestring-0.12
276277
run: |
277-
if [ $((HCNUMVER >= 80600)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='mtl >= 2.3' --constraint='transformers >= 0.6' --dependencies-only -j2 all ; fi
278-
if [ $((HCNUMVER >= 80600)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='mtl >= 2.3' --constraint='transformers >= 0.6' all ; fi
278+
if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='bytestring >= 0.12' --dependencies-only -j2 all ; fi
279+
if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='bytestring >= 0.12' all ; fi
279280
- name: save cache
280281
uses: actions/cache/save@v3
281282
if: always()

cabal.haskell-ci

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,31 @@ branches: master
22

33
installed: +all -text -Cabal
44

5-
constraint-set mtl-2.3
6-
ghc: >= 8.6
7-
constraints: mtl >= 2.3, transformers >= 0.6
8-
95
-- doctest-parallel requires base >= 4.10
10-
tests: >= 8.2
6+
tests: >= 8.2
7+
8+
constraint-set bytestring-0.12
9+
-- bytestring-0.12 requires base >=4.9 (GHC 8.0)
10+
ghc: >= 8.0
11+
constraints: bytestring >= 0.12
12+
--
13+
-- The following is silently ignored here:
14+
--
15+
-- raw-project
16+
-- allow-newer: bytestring
17+
--
18+
-- Cannot build tests with newer bytestring because doctest-parallel relies on non-upgradeable ghc library
19+
--
20+
-- tests: True
21+
-- run-tests: True
22+
23+
-- The following is meant to be for constraint-set bytestring-0.12 only,
24+
-- but there is currently no way to enable `allow-newer: bytestring`
25+
-- just for the constraint set.
26+
--
27+
-- Since core library `bytestring` is constrained to `installed`,
28+
-- it is not harmful to allow newer `bytestring` in the default runs
29+
-- as well---it will have no effect there.
30+
--
31+
raw-project
32+
allow-newer: bytestring

0 commit comments

Comments
 (0)