Skip to content

Commit 54d3c33

Browse files
authored
Merge pull request #1071 from haskell/less-constraint-sets
Remove bytestring-0.12, text-1.2/2.0 constraint-sets from CI
2 parents 9058d2a + 754bcef commit 54d3c33

File tree

2 files changed

+13
-32
lines changed

2 files changed

+13
-32
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.16.4
11+
# version: 0.17.20230929
1212
#
13-
# REGENDATA ("0.16.4",["github","cabal.project"])
13+
# REGENDATA ("0.17.20230929",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -85,7 +85,7 @@ jobs:
8585
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
8686
if [ "${{ matrix.setup-method }}" = ghcup ]; then
8787
mkdir -p "$HOME/.ghcup/bin"
88-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
88+
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
8989
chmod a+x "$HOME/.ghcup/bin/ghcup"
9090
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
9191
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
@@ -94,7 +94,7 @@ jobs:
9494
apt-get update
9595
apt-get install -y "$HCNAME"
9696
mkdir -p "$HOME/.ghcup/bin"
97-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
97+
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
9898
chmod a+x "$HOME/.ghcup/bin/ghcup"
9999
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
100100
fi
@@ -110,10 +110,12 @@ jobs:
110110
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
111111
HCDIR=/opt/$HCKIND/$HCVER
112112
if [ "${{ matrix.setup-method }}" = ghcup ]; then
113-
HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
113+
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
114+
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
115+
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
114116
echo "HC=$HC" >> "$GITHUB_ENV"
115-
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
116-
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
117+
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
118+
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
117119
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
118120
else
119121
HC=$HCDIR/bin/$HCKIND
@@ -309,23 +311,16 @@ jobs:
309311
- name: prepare for constraint sets
310312
run: |
311313
rm -f cabal.project.local
312-
- name: constraint set text-2.0
313-
run: |
314-
$CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=2.0' all
315-
$CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=2.0' all
316-
- name: constraint set text-1.2
317-
run: |
318-
if [ $((HCNUMVER < 90400)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=1.2.3.0' all ; fi
319-
if [ $((HCNUMVER < 90400)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>=1.2.3.0' all ; fi
320-
- name: constraint set bytestring-0.11.2.0
321-
run: |
322-
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='bytestring >= 0.11.2.0' all
323314
- name: constraint set ordered-keymap-off
324315
run: |
316+
$CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson -ordered-keymap' all --dry-run
317+
cabal-plan topo | sort
325318
$CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson -ordered-keymap' all
326319
$CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson -ordered-keymap' all
327320
- name: constraint set ordered-keymap-on
328321
run: |
322+
$CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson +ordered-keymap' all --dry-run
323+
cabal-plan topo | sort
329324
$CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson +ordered-keymap' all
330325
$CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson +ordered-keymap' all
331326
- name: save cache

cabal.haskell-ci

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,3 @@ constraint-set ordered-keymap-off
2121
constraints: aeson -ordered-keymap
2222
tests: True
2323
run-tests: True
24-
25-
constraint-set bytestring-0.11.2.0
26-
constraints: bytestring >= 0.11.2.0
27-
28-
constraint-set text-1.2
29-
ghc: <9.4
30-
constraints: text ^>=1.2.3.0
31-
tests: True
32-
run-tests: True
33-
34-
constraint-set text-2.0
35-
constraints: text ^>=2.0
36-
tests: True
37-
run-tests: True

0 commit comments

Comments
 (0)