Skip to content

Commit c43f7f8

Browse files
committed
allow base-4.19 and test on GHC 9.8
1 parent 3c80075 commit c43f7f8

File tree

2 files changed

+26
-19
lines changed

2 files changed

+26
-19
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 24 additions & 17 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.16.3
11+
# version: 0.17.20231203
1212
#
13-
# REGENDATA ("0.16.3",["github","palette.cabal"])
13+
# REGENDATA ("0.17.20231203",["github","palette.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -28,19 +28,24 @@ jobs:
2828
strategy:
2929
matrix:
3030
include:
31-
- compiler: ghc-9.6.1
31+
- compiler: ghc-9.8.1
3232
compilerKind: ghc
33-
compilerVersion: 9.6.1
33+
compilerVersion: 9.8.1
3434
setup-method: ghcup
3535
allow-failure: false
36-
- compiler: ghc-9.4.5
36+
- compiler: ghc-9.6.3
3737
compilerKind: ghc
38-
compilerVersion: 9.4.5
38+
compilerVersion: 9.6.3
3939
setup-method: ghcup
4040
allow-failure: false
41-
- compiler: ghc-9.2.7
41+
- compiler: ghc-9.4.8
4242
compilerKind: ghc
43-
compilerVersion: 9.2.7
43+
compilerVersion: 9.4.8
44+
setup-method: ghcup
45+
allow-failure: false
46+
- compiler: ghc-9.2.8
47+
compilerKind: ghc
48+
compilerVersion: 9.2.8
4449
setup-method: ghcup
4550
allow-failure: false
4651
- compiler: ghc-9.0.2
@@ -86,18 +91,18 @@ jobs:
8691
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
8792
if [ "${{ matrix.setup-method }}" = ghcup ]; then
8893
mkdir -p "$HOME/.ghcup/bin"
89-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
94+
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
9095
chmod a+x "$HOME/.ghcup/bin/ghcup"
9196
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
92-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
97+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
9398
else
9499
apt-add-repository -y 'ppa:hvr/ghc'
95100
apt-get update
96101
apt-get install -y "$HCNAME"
97102
mkdir -p "$HOME/.ghcup/bin"
98-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.2/x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
103+
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
99104
chmod a+x "$HOME/.ghcup/bin/ghcup"
100-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
105+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
101106
fi
102107
env:
103108
HCKIND: ${{ matrix.compilerKind }}
@@ -111,17 +116,19 @@ jobs:
111116
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
112117
HCDIR=/opt/$HCKIND/$HCVER
113118
if [ "${{ matrix.setup-method }}" = ghcup ]; then
114-
HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
119+
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
120+
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
121+
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
115122
echo "HC=$HC" >> "$GITHUB_ENV"
116-
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
117-
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
118-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
123+
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
124+
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
125+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
119126
else
120127
HC=$HCDIR/bin/$HCKIND
121128
echo "HC=$HC" >> "$GITHUB_ENV"
122129
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
123130
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
124-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
131+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
125132
fi
126133
127134
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')

palette.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Build-type: Simple
1515
Cabal-version: 1.18
1616
Extra-source-files: README.markdown, diagrams/*.svg
1717
Extra-doc-files: diagrams/*.svg, CHANGES.markdown
18-
Tested-with: GHC ==8.0.2 || == 8.2.2 || == 8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.7 || ==9.4.5 || ==9.6.1
18+
Tested-with: GHC ==8.0.2 || == 8.2.2 || == 8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.3 || ==9.8.1
1919
Source-repository head
2020
type: git
2121
location: http://github.com/diagrams/palette.git
@@ -28,7 +28,7 @@ Library
2828
Data.Colour.Palette.Types
2929
Data.Colour.Palette.RandomColor
3030

31-
Build-depends: base >= 4.2 && < 4.19,
31+
Build-depends: base >= 4.2 && < 4.20,
3232
array >= 0.4 && < 0.6,
3333
colour >= 2.3 && < 3.0,
3434
containers >= 0.5 && < 0.7,

0 commit comments

Comments
 (0)