Skip to content

Commit 2ba00e6

Browse files
committed
Bump base and ghc-prim for GHC 9.6 and beyond
1 parent 3bf93a6 commit 2ba00e6

File tree

2 files changed

+54
-17
lines changed

2 files changed

+54
-17
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 50 additions & 14 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.15.20221009
11+
# version: 0.16
1212
#
13-
# REGENDATA ("0.15.20221009",["github","deepseq-generics.cabal"])
13+
# REGENDATA ("0.16",["github","deepseq-generics.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -34,6 +34,21 @@ jobs:
3434
strategy:
3535
matrix:
3636
include:
37+
- compiler: ghc-9.6.1
38+
compilerKind: ghc
39+
compilerVersion: 9.6.1
40+
setup-method: ghcup
41+
allow-failure: false
42+
- compiler: ghc-9.4.4
43+
compilerKind: ghc
44+
compilerVersion: 9.4.4
45+
setup-method: ghcup
46+
allow-failure: false
47+
- compiler: ghc-9.4.3
48+
compilerKind: ghc
49+
compilerVersion: 9.4.3
50+
setup-method: ghcup
51+
allow-failure: false
3752
- compiler: ghc-9.4.2
3853
compilerKind: ghc
3954
compilerVersion: 9.4.2
@@ -44,6 +59,21 @@ jobs:
4459
compilerVersion: 9.4.1
4560
setup-method: ghcup
4661
allow-failure: false
62+
- compiler: ghc-9.2.7
63+
compilerKind: ghc
64+
compilerVersion: 9.2.7
65+
setup-method: ghcup
66+
allow-failure: false
67+
- compiler: ghc-9.2.6
68+
compilerKind: ghc
69+
compilerVersion: 9.2.6
70+
setup-method: ghcup
71+
allow-failure: false
72+
- compiler: ghc-9.2.5
73+
compilerKind: ghc
74+
compilerVersion: 9.2.5
75+
setup-method: ghcup
76+
allow-failure: false
4777
- compiler: ghc-9.2.4
4878
compilerKind: ghc
4979
compilerVersion: 9.2.4
@@ -132,18 +162,18 @@ jobs:
132162
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
133163
if [ "${{ matrix.setup-method }}" = ghcup ]; then
134164
mkdir -p "$HOME/.ghcup/bin"
135-
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
165+
curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
136166
chmod a+x "$HOME/.ghcup/bin/ghcup"
137167
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
138-
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
168+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
139169
else
140170
apt-add-repository -y 'ppa:hvr/ghc'
141171
apt-get update
142172
apt-get install -y "$HCNAME"
143173
mkdir -p "$HOME/.ghcup/bin"
144-
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
174+
curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
145175
chmod a+x "$HOME/.ghcup/bin/ghcup"
146-
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
176+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
147177
fi
148178
env:
149179
HCKIND: ${{ matrix.compilerKind }}
@@ -161,13 +191,13 @@ jobs:
161191
echo "HC=$HC" >> "$GITHUB_ENV"
162192
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
163193
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
164-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
194+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
165195
else
166196
HC=$HCDIR/bin/$HCKIND
167197
echo "HC=$HC" >> "$GITHUB_ENV"
168198
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
169199
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
170-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
200+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
171201
fi
172202
173203
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -219,14 +249,14 @@ jobs:
219249
- name: install cabal-plan
220250
run: |
221251
mkdir -p $HOME/.cabal/bin
222-
curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.6.2.0/cabal-plan-0.6.2.0-x86_64-linux.xz > cabal-plan.xz
223-
echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
252+
curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.7.3.0/cabal-plan-0.7.3.0-x86_64-linux.xz > cabal-plan.xz
253+
echo 'f62ccb2971567a5f638f2005ad3173dba14693a45154c1508645c52289714cb2 cabal-plan.xz' | sha256sum -c -
224254
xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
225255
rm -f cabal-plan.xz
226256
chmod a+x $HOME/.cabal/bin/cabal-plan
227257
cabal-plan --version
228258
- name: checkout
229-
uses: actions/checkout@v2
259+
uses: actions/checkout@v3
230260
with:
231261
path: source
232262
- name: initial cabal.project for sdist
@@ -261,8 +291,8 @@ jobs:
261291
run: |
262292
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
263293
cabal-plan
264-
- name: cache
265-
uses: actions/cache@v2
294+
- name: restore cache
295+
uses: actions/cache/restore@v3
266296
with:
267297
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
268298
path: ~/.cabal/store
@@ -286,8 +316,14 @@ jobs:
286316
${CABAL} -vnormal check
287317
- name: haddock
288318
run: |
289-
$CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
319+
$CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
290320
- name: unconstrained build
291321
run: |
292322
rm -f cabal.project.local
293323
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
324+
- name: save cache
325+
uses: actions/cache/save@v3
326+
if: always()
327+
with:
328+
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
329+
path: ~/.cabal/store

deepseq-generics.cabal

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: deepseq-generics
22
version: 0.2.0.0
3-
x-revision: 8
3+
x-revision: 9
44

55
synopsis: GHC.Generics-based Control.DeepSeq.rnf implementation
66
homepage: https://github.com/haskell-hvr/deepseq-generics
@@ -15,6 +15,7 @@ build-type: Simple
1515
cabal-version: >=1.10
1616

1717
tested-with:
18+
GHC == 9.6.1
1819
GHC == 9.4.*
1920
GHC == 9.2.*
2021
GHC == 9.0.*
@@ -59,8 +60,8 @@ source-repository head
5960
library
6061
default-language: Haskell2010
6162
exposed-modules: Control.DeepSeq.Generics
62-
build-depends: base >= 4.5 && < 4.18
63-
, ghc-prim >= 0.2 && < 0.10
63+
build-depends: base >= 4.5 && < 5
64+
, ghc-prim >= 0.2 && < 1
6465
, deepseq >= 1.2.0.1 && < 1.5
6566
other-extensions: BangPatterns, FlexibleContexts, TypeOperators
6667
ghc-options: -Wall

0 commit comments

Comments
 (0)