Skip to content

Commit efb9a50

Browse files
authored
Merge pull request #89 from biocad/maksbotan/ghc-9.8
Bump versions for GHC 9.8
2 parents 65968b9 + 0e0df1b commit efb9a50

File tree

2 files changed

+37
-25
lines changed

2 files changed

+37
-25
lines changed

.github/workflows/haskell-ci.yml

+28-17
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.16.3
11+
# version: 0.17.20231110
1212
#
13-
# REGENDATA ("0.16.3",["github","cabal.project"])
13+
# REGENDATA ("0.17.20231110",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -32,19 +32,24 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.6.1
35+
- compiler: ghc-9.8.1
3636
compilerKind: ghc
37-
compilerVersion: 9.6.1
37+
compilerVersion: 9.8.1
3838
setup-method: ghcup
3939
allow-failure: true
40-
- compiler: ghc-9.4.5
40+
- compiler: ghc-9.6.3
4141
compilerKind: ghc
42-
compilerVersion: 9.4.5
42+
compilerVersion: 9.6.3
4343
setup-method: ghcup
4444
allow-failure: true
45-
- compiler: ghc-9.2.7
45+
- compiler: ghc-9.4.8
4646
compilerKind: ghc
47-
compilerVersion: 9.2.7
47+
compilerVersion: 9.4.8
48+
setup-method: ghcup
49+
allow-failure: true
50+
- compiler: ghc-9.2.8
51+
compilerKind: ghc
52+
compilerVersion: 9.2.8
4853
setup-method: ghcup
4954
allow-failure: true
5055
- compiler: ghc-9.0.2
@@ -80,18 +85,18 @@ jobs:
8085
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
8186
if [ "${{ matrix.setup-method }}" = ghcup ]; then
8287
mkdir -p "$HOME/.ghcup/bin"
83-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
88+
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
8489
chmod a+x "$HOME/.ghcup/bin/ghcup"
8590
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
86-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
91+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
8792
else
8893
apt-add-repository -y 'ppa:hvr/ghc'
8994
apt-get update
9095
apt-get install -y "$HCNAME"
9196
mkdir -p "$HOME/.ghcup/bin"
92-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
97+
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
9398
chmod a+x "$HOME/.ghcup/bin/ghcup"
94-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
99+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
95100
fi
96101
env:
97102
HCKIND: ${{ matrix.compilerKind }}
@@ -105,17 +110,19 @@ jobs:
105110
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
106111
HCDIR=/opt/$HCKIND/$HCVER
107112
if [ "${{ matrix.setup-method }}" = ghcup ]; then
108-
HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
113+
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
114+
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
115+
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
109116
echo "HC=$HC" >> "$GITHUB_ENV"
110-
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
111-
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
112-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
117+
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
118+
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
119+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
113120
else
114121
HC=$HCDIR/bin/$HCKIND
115122
echo "HC=$HC" >> "$GITHUB_ENV"
116123
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
117124
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
118-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
125+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
119126
fi
120127
121128
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -244,10 +251,14 @@ jobs:
244251
rm -f cabal.project.local
245252
- name: constraint set aeson-2
246253
run: |
254+
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='aeson >=2.0' all --dry-run
255+
cabal-plan topo | sort
247256
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='aeson >=2.0' --dependencies-only -j2 all
248257
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='aeson >=2.0' all
249258
- name: constraint set aeson-1
250259
run: |
260+
if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='aeson <2.0' all --dry-run ; fi
261+
if [ $((HCNUMVER < 90200)) -ne 0 ] ; then cabal-plan topo | sort ; fi
251262
if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='aeson <2.0' --dependencies-only -j2 all ; fi
252263
if [ $((HCNUMVER < 90200)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='aeson <2.0' all ; fi
253264
- name: save cache

openapi3.cabal

+9-8
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ tested-with:
2828
|| ==8.8.4
2929
|| ==8.10.7
3030
|| ==9.0.2
31-
|| ==9.2.7
32-
|| ==9.4.5
33-
|| ==9.6.1
31+
|| ==9.2.8
32+
|| ==9.4.8
33+
|| ==9.6.3
34+
|| ==9.8.1
3435

3536
custom-setup
3637
setup-depends:
@@ -65,16 +66,16 @@ library
6566

6667
-- GHC boot libraries
6768
build-depends:
68-
base >=4.11.1.0 && <4.19
69-
, bytestring >=0.10.8.2 && <0.12
70-
, containers >=0.5.11.0 && <0.7
71-
, template-haskell >=2.13.0.0 && <2.21
69+
base >=4.11.1.0 && <4.20
70+
, bytestring >=0.10.8.2 && <0.13
71+
, containers >=0.5.11.0 && <0.8
72+
, template-haskell >=2.13.0.0 && <2.22
7273
, time >=1.8.0.2 && <1.14
7374
, transformers >=0.5.5.0 && <0.7
7475

7576
build-depends:
7677
mtl >=2.2.2 && <2.4
77-
, text >=1.2.3.1 && <2.1
78+
, text >=1.2.3.1 && <2.2
7879

7980
-- other dependencies
8081
build-depends:

0 commit comments

Comments
 (0)