Skip to content

Commit 0e84d3f

Browse files
committed
Allow filepath-1.5 in testsuite; bump CI to GHC 9.10.0
1 parent de136f2 commit 0e84d3f

File tree

3 files changed

+81
-128
lines changed

3 files changed

+81
-128
lines changed

.github/workflows/haskell-ci.yml

+36-83
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/andreasabel/haskell-ci
1010
#
11-
# version: 0.17.20230928
11+
# version: 0.19.20240416
1212
#
13-
# REGENDATA ("0.17.20230928",["github","regex-tdfa.cabal"])
13+
# REGENDATA ("0.19.20240416",["github","regex-tdfa.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -32,19 +32,24 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.8.0.20230919
35+
- compiler: ghc-9.10.0.20240413
3636
compilerKind: ghc
37-
compilerVersion: 9.8.0.20230919
37+
compilerVersion: 9.10.0.20240413
3838
setup-method: ghcup
39-
allow-failure: true
40-
- compiler: ghc-9.6.3
39+
allow-failure: false
40+
- compiler: ghc-9.8.2
4141
compilerKind: ghc
42-
compilerVersion: 9.6.3
42+
compilerVersion: 9.8.2
4343
setup-method: ghcup
4444
allow-failure: false
45-
- compiler: ghc-9.4.7
45+
- compiler: ghc-9.6.4
4646
compilerKind: ghc
47-
compilerVersion: 9.4.7
47+
compilerVersion: 9.6.4
48+
setup-method: ghcup
49+
allow-failure: false
50+
- compiler: ghc-9.4.8
51+
compilerKind: ghc
52+
compilerVersion: 9.4.8
4853
setup-method: ghcup
4954
allow-failure: false
5055
- compiler: ghc-9.2.8
@@ -65,56 +70,40 @@ jobs:
6570
- compiler: ghc-8.8.4
6671
compilerKind: ghc
6772
compilerVersion: 8.8.4
68-
setup-method: hvr-ppa
73+
setup-method: ghcup
6974
allow-failure: false
7075
- compiler: ghc-8.6.5
7176
compilerKind: ghc
7277
compilerVersion: 8.6.5
73-
setup-method: hvr-ppa
78+
setup-method: ghcup
7479
allow-failure: false
7580
- compiler: ghc-8.4.4
7681
compilerKind: ghc
7782
compilerVersion: 8.4.4
78-
setup-method: hvr-ppa
83+
setup-method: ghcup
7984
allow-failure: false
8085
- compiler: ghc-8.2.2
8186
compilerKind: ghc
8287
compilerVersion: 8.2.2
83-
setup-method: hvr-ppa
88+
setup-method: ghcup
8489
allow-failure: false
8590
- compiler: ghc-8.0.2
8691
compilerKind: ghc
8792
compilerVersion: 8.0.2
88-
setup-method: hvr-ppa
89-
allow-failure: false
90-
- compiler: ghc-7.10.3
91-
compilerKind: ghc
92-
compilerVersion: 7.10.3
93-
setup-method: hvr-ppa
93+
setup-method: ghcup
9494
allow-failure: false
9595
fail-fast: false
9696
steps:
9797
- name: apt
9898
run: |
9999
apt-get update
100-
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
101-
if [ "${{ matrix.setup-method }}" = ghcup ]; then
102-
mkdir -p "$HOME/.ghcup/bin"
103-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
104-
chmod a+x "$HOME/.ghcup/bin/ghcup"
105-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
106-
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
107-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
108-
else
109-
apt-add-repository -y 'ppa:hvr/ghc'
110-
apt-get update
111-
apt-get install -y "$HCNAME"
112-
mkdir -p "$HOME/.ghcup/bin"
113-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
114-
chmod a+x "$HOME/.ghcup/bin/ghcup"
115-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
116-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
117-
fi
100+
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
101+
mkdir -p "$HOME/.ghcup/bin"
102+
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
103+
chmod a+x "$HOME/.ghcup/bin/ghcup"
104+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
105+
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
106+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.3.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
118107
env:
119108
HCKIND: ${{ matrix.compilerKind }}
120109
HCNAME: ${{ matrix.compiler }}
@@ -126,27 +115,18 @@ jobs:
126115
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
127116
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
128117
HCDIR=/opt/$HCKIND/$HCVER
129-
if [ "${{ matrix.setup-method }}" = ghcup ]; then
130-
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
131-
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
132-
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
133-
echo "HC=$HC" >> "$GITHUB_ENV"
134-
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
135-
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
136-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
137-
else
138-
HC=$HCDIR/bin/$HCKIND
139-
echo "HC=$HC" >> "$GITHUB_ENV"
140-
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
141-
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
142-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
143-
fi
144-
118+
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
119+
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
120+
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
121+
echo "HC=$HC" >> "$GITHUB_ENV"
122+
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
123+
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
124+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.3.0 -vnormal+nowrap" >> "$GITHUB_ENV"
145125
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
146126
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
147127
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
148128
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
149-
if [ $((HCNUMVER >= 90800)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
129+
if [ $((HCNUMVER >= 91000)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
150130
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
151131
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
152132
env:
@@ -237,9 +217,6 @@ jobs:
237217
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package regex-tdfa" >> cabal.project ; fi
238218
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
239219
cat >> cabal.project <<EOF
240-
allow-newer: bytestring
241-
allow-newer: containers
242-
allow-newer: text
243220
EOF
244221
if $HEADHACKAGE; then
245222
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
@@ -252,7 +229,7 @@ jobs:
252229
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
253230
cabal-plan
254231
- name: restore cache
255-
uses: actions/cache/restore@v3
232+
uses: actions/cache/restore@v4
256233
with:
257234
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
258235
path: ~/.cabal/store
@@ -281,32 +258,8 @@ jobs:
281258
run: |
282259
rm -f cabal.project.local
283260
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
284-
- name: prepare for constraint sets
285-
run: |
286-
rm -f cabal.project.local
287-
- name: constraint set text-2.1
288-
run: |
289-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>= 2.1' all --dry-run ; fi
290-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then cabal-plan topo | sort ; fi
291-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>= 2.1' --dependencies-only -j2 all ; fi
292-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>= 2.1' all ; fi
293-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='text ^>= 2.1' all ; fi
294-
- name: constraint set containers-0.7
295-
run: |
296-
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
297-
if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then cabal-plan topo | sort ; fi
298-
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
299-
if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers ^>= 0.7' all ; fi
300-
if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers ^>= 0.7' all ; fi
301-
- name: constraint set bytestring-0.12
302-
run: |
303-
if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring ^>= 0.12' all --dry-run ; fi
304-
if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then cabal-plan topo | sort ; fi
305-
if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring ^>= 0.12' --dependencies-only -j2 all ; fi
306-
if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring ^>= 0.12' all ; fi
307-
if [ $((HCNUMVER >= 80000)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring ^>= 0.12' all ; fi
308261
- name: save cache
309-
uses: actions/cache/save@v3
262+
uses: actions/cache/save@v4
310263
if: always()
311264
with:
312265
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}

cabal.haskell-ci

+39-39
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,44 @@ branches: master
22

33
installed: +all
44

5-
constraint-set bytestring-0.12
6-
-- bytestring-0.12 requires base >=4.9 (GHC 8.0)
7-
ghc: >= 8.0
8-
constraints: bytestring ^>= 0.12
9-
tests: True
10-
run-tests: True
11-
--
12-
-- The following is silently ignored here:
13-
--
14-
-- raw-project
15-
-- allow-newer: bytestring
16-
--
17-
18-
constraint-set containers-0.7
19-
-- containers-0.7 requires base >=4.9 (GHC 8.0)
20-
-- fails with GHCs 8.0 and 9.8.0
21-
ghc: >= 8.2 && < 9.7
22-
constraints: containers ^>= 0.7
23-
tests: True
24-
run-tests: True
25-
26-
constraint-set text-2.1
27-
-- text-2.1 requires base >=4.10 (GHC 8.2)
28-
ghc: >= 8.2
29-
constraints: text ^>= 2.1
30-
tests: True
31-
run-tests: True
32-
33-
-- The following is meant to be for the constraint-set bytestring-0.12 only
34-
-- (and for the other constraint-sets)
35-
-- but there is currently no way to enable `allow-newer: bytestring`
36-
-- just for the constraint set.
5+
-- constraint-set bytestring-0.12
6+
-- -- bytestring-0.12 requires base >=4.9 (GHC 8.0)
7+
-- ghc: >= 8.0
8+
-- constraints: bytestring ^>= 0.12
9+
-- tests: True
10+
-- run-tests: True
11+
-- --
12+
-- -- The following is silently ignored here:
13+
-- --
14+
-- -- raw-project
15+
-- -- allow-newer: bytestring
16+
-- --
17+
--
18+
-- constraint-set containers-0.7
19+
-- -- containers-0.7 requires base >=4.9 (GHC 8.0)
20+
-- -- fails with GHCs 8.0 and 9.8.0
21+
-- ghc: >= 8.2 && < 9.7
22+
-- constraints: containers ^>= 0.7
23+
-- tests: True
24+
-- run-tests: True
3725
--
38-
-- Since core library `bytestring` is constrained to `installed`,
39-
-- it is not harmful to allow newer `bytestring` in the default runs
40-
-- as well---it will have no effect there.
26+
-- constraint-set text-2.1
27+
-- -- text-2.1 requires base >=4.10 (GHC 8.2)
28+
-- ghc: >= 8.2
29+
-- constraints: text ^>= 2.1
30+
-- tests: True
31+
-- run-tests: True
4132
--
42-
raw-project
43-
allow-newer: bytestring
44-
allow-newer: containers
45-
allow-newer: text
33+
-- -- The following is meant to be for the constraint-set bytestring-0.12 only
34+
-- -- (and for the other constraint-sets)
35+
-- -- but there is currently no way to enable `allow-newer: bytestring`
36+
-- -- just for the constraint set.
37+
-- --
38+
-- -- Since core library `bytestring` is constrained to `installed`,
39+
-- -- it is not harmful to allow newer `bytestring` in the default runs
40+
-- -- as well---it will have no effect there.
41+
-- --
42+
-- raw-project
43+
-- allow-newer: bytestring
44+
-- allow-newer: containers
45+
-- allow-newer: text

regex-tdfa.cabal

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 1.12
22
name: regex-tdfa
33
version: 1.3.2.2
4-
x-revision: 2
4+
x-revision: 3
55

66
build-Type: Simple
77
license: BSD3
@@ -26,9 +26,10 @@ extra-source-files:
2626
test/cases/*.txt
2727

2828
tested-with:
29-
GHC == 9.8.0
30-
GHC == 9.6.3
31-
GHC == 9.4.7
29+
GHC == 9.10.0
30+
GHC == 9.8.2
31+
GHC == 9.6.4
32+
GHC == 9.4.8
3233
GHC == 9.2.8
3334
GHC == 9.0.2
3435
GHC == 8.10.7
@@ -37,7 +38,6 @@ tested-with:
3738
GHC == 8.4.4
3839
GHC == 8.2.2
3940
GHC == 8.0.2
40-
GHC == 7.10.3
4141

4242
source-repository head
4343
type: git
@@ -163,7 +163,7 @@ test-suite regex-tdfa-unittest
163163

164164
-- component-specific dependencies not inherited via 'regex-tdfa'
165165
, directory >= 1.1.0 && < 1.4
166-
, filepath >= 1.3.0 && < 1.5
166+
, filepath >= 1.3.0 && < 1.6
167167
, utf8-string >= 1.0.1 && < 1.1
168168

169169
default-language: Haskell2010

0 commit comments

Comments
 (0)