Skip to content

Commit ee22eeb

Browse files
committed
Allow filepath-1.5 in testsuite, bump CI to GHC 9.10
1 parent 843f02d commit ee22eeb

File tree

3 files changed

+49
-39
lines changed

3 files changed

+49
-39
lines changed

.github/workflows/haskell-ci.yml

+35-26
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.20231012
11+
# version: 0.18.1.20240316
1212
#
13-
# REGENDATA ("0.17.20231012",["github","resolv.cabal"])
13+
# REGENDATA ("0.18.1.20240316",["github","resolv.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -32,19 +32,24 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.8.1
35+
- compiler: ghc-9.10.0.20240313
3636
compilerKind: ghc
37-
compilerVersion: 9.8.1
37+
compilerVersion: 9.10.0.20240313
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.6.3
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
@@ -94,11 +99,11 @@ jobs:
9499
apt-get update
95100
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
96101
mkdir -p "$HOME/.ghcup/bin"
97-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
102+
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
98103
chmod a+x "$HOME/.ghcup/bin/ghcup"
99-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
104+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
100105
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
101-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
106+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.1 || (cat "$HOME"/.ghcup/logs/*.* && false)
102107
env:
103108
HCKIND: ${{ matrix.compilerKind }}
104109
HCNAME: ${{ matrix.compiler }}
@@ -116,12 +121,12 @@ jobs:
116121
echo "HC=$HC" >> "$GITHUB_ENV"
117122
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
118123
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
119-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
124+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.1 -vnormal+nowrap" >> "$GITHUB_ENV"
120125
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
121126
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
122127
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
123128
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
124-
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
129+
if [ $((HCNUMVER >= 91000)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
125130
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
126131
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
127132
env:
@@ -150,6 +155,18 @@ jobs:
150155
repository hackage.haskell.org
151156
url: http://hackage.haskell.org/
152157
EOF
158+
if $HEADHACKAGE; then
159+
cat >> $CABAL_CONFIG <<EOF
160+
repository head.hackage.ghc.haskell.org
161+
url: https://ghc.gitlab.haskell.org/head.hackage/
162+
secure: True
163+
root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
164+
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
165+
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
166+
key-threshold: 3
167+
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
168+
EOF
169+
fi
153170
cat >> $CABAL_CONFIG <<EOF
154171
program-default-options
155172
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -203,8 +220,10 @@ jobs:
203220
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package resolv" >> cabal.project ; fi
204221
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
205222
cat >> cabal.project <<EOF
206-
allow-newer: containers
207223
EOF
224+
if $HEADHACKAGE; then
225+
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
226+
fi
208227
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(binary|resolv)$/; }' >> cabal.project.local
209228
cat cabal.project
210229
cat cabal.project.local
@@ -213,7 +232,7 @@ jobs:
213232
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
214233
cabal-plan
215234
- name: restore cache
216-
uses: actions/cache/restore@v3
235+
uses: actions/cache/restore@v4
217236
with:
218237
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
219238
path: ~/.cabal/store
@@ -242,18 +261,8 @@ jobs:
242261
run: |
243262
rm -f cabal.project.local
244263
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
245-
- name: prepare for constraint sets
246-
run: |
247-
rm -f cabal.project.local
248-
- name: constraint set containers-0.7
249-
run: |
250-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all --dry-run ; fi
251-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then cabal-plan topo | sort ; fi
252-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' --dependencies-only -j2 all ; fi
253-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all ; fi
254-
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all ; fi
255264
- name: save cache
256-
uses: actions/cache/save@v3
265+
uses: actions/cache/save@v4
257266
if: always()
258267
with:
259268
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}

cabal.haskell-ci

+9-9
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ ghcup-jobs: True
88

99
installed: +all -binary
1010

11-
-- Test core libraries in versions newer than shipped with GHC
12-
constraint-set containers-0.7
13-
constraints: containers >= 0.7
14-
ghc: >= 8.2
15-
tests: True
16-
run-tests: True
17-
18-
raw-project
19-
allow-newer: containers
11+
-- -- Test core libraries in versions newer than shipped with GHC
12+
-- constraint-set containers-0.7
13+
-- constraints: containers >= 0.7
14+
-- ghc: >= 8.2
15+
-- tests: True
16+
-- run-tests: True
17+
--
18+
-- raw-project
19+
-- allow-newer: containers

resolv.cabal

+5-4
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ extra-tmp-files: autom4te.cache
5656
cbits/hs_resolv_config.h
5757

5858
tested-with:
59-
GHC == 9.8.1
60-
GHC == 9.6.3
61-
GHC == 9.4.7
59+
GHC == 9.10.0
60+
GHC == 9.8.2
61+
GHC == 9.6.4
62+
GHC == 9.4.8
6263
GHC == 9.2.8
6364
GHC == 9.0.2
6465
GHC == 8.10.7
@@ -124,4 +125,4 @@ test-suite resolv.
124125
build-depends: tasty >= 1.2.3 && < 1.6
125126
, tasty-hunit ^>= 0.10.0
126127
, directory ^>= 1.1.0 || ^>= 1.2.0 || ^>= 1.3.0
127-
, filepath ^>= 1.3.0 || ^>= 1.4.0
128+
, filepath >= 1.3 && < 1.6

0 commit comments

Comments
 (0)