Skip to content

Commit 86a52c9

Browse files
authored
Merge pull request #24 from haskellari/ghc-9.6
Allow base-4.18
2 parents 1bcd90d + 3c0351b commit 86a52c9

File tree

2 files changed

+28
-15
lines changed

2 files changed

+28
-15
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 25 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.20220808
11+
# version: 0.15.20230313
1212
#
13-
# REGENDATA ("0.15.20220808",["github","cabal.project"])
13+
# REGENDATA ("0.15.20230313",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -32,14 +32,19 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.4.1
35+
- compiler: ghc-9.6.1
3636
compilerKind: ghc
37-
compilerVersion: 9.4.1
37+
compilerVersion: 9.6.1
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.2.4
40+
- compiler: ghc-9.4.4
4141
compilerKind: ghc
42-
compilerVersion: 9.2.4
42+
compilerVersion: 9.4.4
43+
setup-method: ghcup
44+
allow-failure: false
45+
- compiler: ghc-9.2.7
46+
compilerKind: ghc
47+
compilerVersion: 9.2.7
4348
setup-method: ghcup
4449
allow-failure: false
4550
- compiler: ghc-9.0.2
@@ -103,15 +108,15 @@ jobs:
103108
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
104109
chmod a+x "$HOME/.ghcup/bin/ghcup"
105110
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
106-
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
111+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
107112
else
108113
apt-add-repository -y 'ppa:hvr/ghc'
109114
apt-get update
110115
apt-get install -y "$HCNAME"
111116
mkdir -p "$HOME/.ghcup/bin"
112117
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
113118
chmod a+x "$HOME/.ghcup/bin/ghcup"
114-
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
119+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
115120
fi
116121
env:
117122
HCKIND: ${{ matrix.compilerKind }}
@@ -129,13 +134,13 @@ jobs:
129134
echo "HC=$HC" >> "$GITHUB_ENV"
130135
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
131136
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
132-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
137+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
133138
else
134139
HC=$HCDIR/bin/$HCKIND
135140
echo "HC=$HC" >> "$GITHUB_ENV"
136141
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
137142
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
138-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
143+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
139144
fi
140145
141146
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -194,7 +199,7 @@ jobs:
194199
chmod a+x $HOME/.cabal/bin/cabal-plan
195200
cabal-plan --version
196201
- name: checkout
197-
uses: actions/checkout@v2
202+
uses: actions/checkout@v3
198203
with:
199204
path: source
200205
- name: initial cabal.project for sdist
@@ -229,8 +234,8 @@ jobs:
229234
run: |
230235
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
231236
cabal-plan
232-
- name: cache
233-
uses: actions/cache@v2
237+
- name: restore cache
238+
uses: actions/cache/restore@v3
234239
with:
235240
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
236241
path: ~/.cabal/store
@@ -254,8 +259,14 @@ jobs:
254259
${CABAL} -vnormal check
255260
- name: haddock
256261
run: |
257-
$CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
262+
$CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
258263
- name: unconstrained build
259264
run: |
260265
rm -f cabal.project.local
261266
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
267+
- name: save cache
268+
uses: actions/cache/save@v3
269+
if: always()
270+
with:
271+
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
272+
path: ~/.cabal/store

binary-instances.cabal

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: binary-instances
22
version: 1.0.4
3+
x-revision: 1
34
synopsis: Orphan instances for binary
45
description:
56
`binary-instances` defines orphan instances for types in some popular packages.
@@ -26,6 +27,7 @@ tested-with:
2627
|| ==9.0.2
2728
|| ==9.2.7
2829
|| ==9.4.4
30+
|| ==9.6.1
2931

3032
extra-source-files: CHANGELOG.md
3133

@@ -38,7 +40,7 @@ library
3840
hs-source-dirs: src
3941
build-depends:
4042
aeson >=0.7.0.6 && <1.6 || >=2.0.0.0 && <2.2
41-
, base >=4.6.0.1 && <4.18
43+
, base >=4.6.0.1 && <4.19
4244
, binary >=0.5.1.1 && <0.8.10
4345
, binary-orphans >=1.0.4 && <1.1
4446
, case-insensitive >=1.2.0.4 && <1.2.2

0 commit comments

Comments
 (0)