Skip to content

Commit 69431b5

Browse files
committed
v0.28.0.1 Revision 1: Allow base-compat-0.13, bump CI to GHC 9.6.1
1 parent ed296cb commit 69431b5

File tree

3 files changed

+14
-30
lines changed

3 files changed

+14
-30
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 10 additions & 27 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.20230217
11+
# version: 0.15.20230312
1212
#
13-
# REGENDATA ("0.15.20230217",["--config=cabal.haskell-ci","github","cabal.project"])
13+
# REGENDATA ("0.15.20230312",["--config=cabal.haskell-ci","github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -34,11 +34,11 @@ jobs:
3434
strategy:
3535
matrix:
3636
include:
37-
- compiler: ghc-9.6.0.20230210
37+
- compiler: ghc-9.6.1
3838
compilerKind: ghc
39-
compilerVersion: 9.6.0.20230210
39+
compilerVersion: 9.6.1
4040
setup-method: ghcup
41-
allow-failure: true
41+
allow-failure: false
4242
- compiler: ghc-9.4.4
4343
compilerKind: ghc
4444
compilerVersion: 9.4.4
@@ -104,18 +104,16 @@ jobs:
104104
mkdir -p "$HOME/.ghcup/bin"
105105
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
106106
chmod a+x "$HOME/.ghcup/bin/ghcup"
107-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.github.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
108107
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
109-
"$HOME/.ghcup/bin/ghcup" install cabal 3.9.0.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
108+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
110109
else
111110
apt-add-repository -y 'ppa:hvr/ghc'
112111
apt-get update
113112
apt-get install -y "$HCNAME"
114113
mkdir -p "$HOME/.ghcup/bin"
115114
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
116115
chmod a+x "$HOME/.ghcup/bin/ghcup"
117-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.github.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
118-
"$HOME/.ghcup/bin/ghcup" install cabal 3.9.0.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
116+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
119117
fi
120118
env:
121119
HCKIND: ${{ matrix.compilerKind }}
@@ -133,20 +131,20 @@ jobs:
133131
echo "HC=$HC" >> "$GITHUB_ENV"
134132
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
135133
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
136-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.9.0.0 -vnormal+nowrap" >> "$GITHUB_ENV"
134+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
137135
else
138136
HC=$HCDIR/bin/$HCKIND
139137
echo "HC=$HC" >> "$GITHUB_ENV"
140138
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
141139
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
142-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.9.0.0 -vnormal+nowrap" >> "$GITHUB_ENV"
140+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
143141
fi
144142
145143
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
146144
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
147145
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
148146
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
149-
if [ $((HCNUMVER >= 90600)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
147+
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
150148
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
151149
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
152150
env:
@@ -175,18 +173,6 @@ jobs:
175173
repository hackage.haskell.org
176174
url: http://hackage.haskell.org/
177175
EOF
178-
if $HEADHACKAGE; then
179-
cat >> $CABAL_CONFIG <<EOF
180-
repository head.hackage.ghc.haskell.org
181-
url: https://ghc.gitlab.haskell.org/head.hackage/
182-
secure: True
183-
root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
184-
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
185-
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
186-
key-threshold: 3
187-
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
188-
EOF
189-
fi
190176
cat >> $CABAL_CONFIG <<EOF
191177
program-default-options
192178
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -248,9 +234,6 @@ jobs:
248234
constraints: operational -buildExamples
249235
optimization: False
250236
EOF
251-
if $HEADHACKAGE; then
252-
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
253-
fi
254237
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(github|github-samples)$/; }' >> cabal.project.local
255238
cat cabal.project
256239
cat cabal.project.local

github.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
cabal-version: >=1.10
22
name: github
33
version: 0.28.0.1
4+
x-revision: 1
45
synopsis: Access to the GitHub API, v3.
56
category: Network
67
description:
@@ -30,7 +31,7 @@ copyright:
3031
Copyright 2012-2013 Mike Burns, Copyright 2013-2015 John Wiegley, Copyright 2016-2021 Oleg Grenrus
3132

3233
tested-with:
33-
GHC == 9.6.0
34+
GHC == 9.6.1
3435
GHC == 9.4.4
3536
GHC == 9.2.6
3637
GHC == 9.0.2
@@ -181,7 +182,7 @@ library
181182
-- other packages
182183
build-depends:
183184
aeson >=1.4.0.0 && <1.6 || >=2.0.1.0 && <2.2
184-
, base-compat >=0.11.1 && <0.13
185+
, base-compat >=0.11.1 && <0.14
185186
, base16-bytestring >=0.1.1.6 && <1.1
186187
, binary-instances >=1 && <1.1
187188
, cryptohash-sha1 >=0.11.100.1 && <0.12

samples/github-samples.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: Various samples of github package
1010
build-type: Simple
1111

1212
tested-with:
13-
GHC == 9.6.0
13+
GHC == 9.6.1
1414
GHC == 9.4.4
1515
GHC == 9.2.6
1616
GHC == 9.0.2

0 commit comments

Comments
 (0)