Skip to content

Commit b35e967

Browse files
andreasabelkonsumlamm
authored andcommitted
v3.2.2.0 revision 8: allow base-4.20 (GHC 9.10)
1 parent f29c963 commit b35e967

File tree

3 files changed

+42
-44
lines changed

3 files changed

+42
-44
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 31 additions & 35 deletions
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.20240403
1212
#
13-
# REGENDATA ("0.17.20230928",["github","parallel.cabal"])
13+
# REGENDATA ("0.19.20240403",["github","parallel.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.20240328
3636
compilerKind: ghc
37-
compilerVersion: 9.8.0.20230919
37+
compilerVersion: 9.10.0.20240328
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,27 +70,27 @@ 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
93+
setup-method: ghcup
8994
allow-failure: false
9095
- compiler: ghc-7.10.3
9196
compilerKind: ghc
@@ -97,23 +102,23 @@ jobs:
97102
- name: apt
98103
run: |
99104
apt-get update
100-
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
105+
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
101106
if [ "${{ matrix.setup-method }}" = ghcup ]; then
102107
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"
108+
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
104109
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;
110+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
106111
"$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)
112+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.3.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
108113
else
109114
apt-add-repository -y 'ppa:hvr/ghc'
110115
apt-get update
111116
apt-get install -y "$HCNAME"
112117
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"
118+
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
114119
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)
120+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
121+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.3.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
117122
fi
118123
env:
119124
HCKIND: ${{ matrix.compilerKind }}
@@ -133,20 +138,20 @@ jobs:
133138
echo "HC=$HC" >> "$GITHUB_ENV"
134139
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
135140
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
136-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
141+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.3.0 -vnormal+nowrap" >> "$GITHUB_ENV"
137142
else
138143
HC=$HCDIR/bin/$HCKIND
139144
echo "HC=$HC" >> "$GITHUB_ENV"
140145
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
141146
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
142-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
147+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.3.0 -vnormal+nowrap" >> "$GITHUB_ENV"
143148
fi
144149
145150
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
146151
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
147152
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
148153
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
154+
if [ $((HCNUMVER >= 91000)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
150155
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
151156
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
152157
env:
@@ -249,7 +254,7 @@ jobs:
249254
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
250255
cabal-plan
251256
- name: restore cache
252-
uses: actions/cache/restore@v3
257+
uses: actions/cache/restore@v4
253258
with:
254259
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
255260
path: ~/.cabal/store
@@ -275,17 +280,8 @@ jobs:
275280
run: |
276281
rm -f cabal.project.local
277282
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
278-
- name: prepare for constraint sets
279-
run: |
280-
rm -f cabal.project.local
281-
- name: constraint set containers-0.7
282-
run: |
283-
if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='containers ^>= 0.7' all --dry-run ; fi
284-
if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then cabal-plan topo | sort ; fi
285-
if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='containers ^>= 0.7' --dependencies-only -j2 all ; fi
286-
if [ $((HCNUMVER >= 80200 && HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='containers ^>= 0.7' all ; fi
287283
- name: save cache
288-
uses: actions/cache/save@v3
284+
uses: actions/cache/save@v4
289285
if: always()
290286
with:
291287
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}

cabal.haskell-ci

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
branches: master
22

3-
constraint-set containers-0.7
4-
ghc: >= 8.2 && < 9.7
5-
constraints: containers ^>= 0.7
6-
tests: False
3+
-- constraint-set containers-0.7
4+
-- ghc: >= 8.2 && < 9.7
5+
-- constraints: containers ^>= 0.7
6+
-- tests: True
7+
-- run-tests: True

parallel.cabal

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: >=1.10
22
name: parallel
33
version: 3.2.2.0
4-
x-revision: 7
4+
x-revision: 8
55
-- NOTE: Don't forget to update ./changelog.md
66
license: BSD3
77
license-file: LICENSE
@@ -12,9 +12,10 @@ category: Control, Parallelism
1212
build-type: Simple
1313

1414
tested-with:
15-
GHC == 9.8.0
16-
GHC == 9.6.3
17-
GHC == 9.4.7
15+
GHC == 9.10.0
16+
GHC == 9.8.2
17+
GHC == 9.6.4
18+
GHC == 9.4.8
1819
GHC == 9.2.8
1920
GHC == 9.0.2
2021
GHC == 8.10.7
@@ -64,7 +65,7 @@ library
6465

6566
build-depends:
6667
array >= 0.3 && < 0.6,
67-
base >= 4.3 && < 4.20,
68+
base >= 4.3 && < 4.21,
6869
containers >= 0.4 && < 0.8,
6970
deepseq >= 1.1 && < 1.6
7071

0 commit comments

Comments
 (0)