Skip to content

Commit d57e036

Browse files
committed
Bump Haskell CI to GHC 9.8.1
1 parent 52e72a4 commit d57e036

2 files changed

Lines changed: 27 additions & 62 deletions

File tree

.github/workflows/haskell-ci.yml

Lines changed: 26 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/andreasabel/haskell-ci
1010
#
11-
# version: 0.17.20231002
11+
# version: 0.17.20231012
1212
#
13-
# REGENDATA ("0.17.20231002",["github","hackage-cli.cabal"])
13+
# REGENDATA ("0.17.20231012",["github","hackage-cli.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -32,11 +32,11 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.8.0.20230929
35+
- compiler: ghc-9.8.1
3636
compilerKind: ghc
37-
compilerVersion: 9.8.0.20230929
37+
compilerVersion: 9.8.1
3838
setup-method: ghcup
39-
allow-failure: true
39+
allow-failure: false
4040
- compiler: ghc-9.6.3
4141
compilerKind: ghc
4242
compilerVersion: 9.6.3
@@ -65,48 +65,37 @@ jobs:
6565
- compiler: ghc-8.8.4
6666
compilerKind: ghc
6767
compilerVersion: 8.8.4
68-
setup-method: hvr-ppa
68+
setup-method: ghcup
6969
allow-failure: false
7070
- compiler: ghc-8.6.5
7171
compilerKind: ghc
7272
compilerVersion: 8.6.5
73-
setup-method: hvr-ppa
73+
setup-method: ghcup
7474
allow-failure: false
7575
- compiler: ghc-8.4.4
7676
compilerKind: ghc
7777
compilerVersion: 8.4.4
78-
setup-method: hvr-ppa
78+
setup-method: ghcup
7979
allow-failure: false
8080
- compiler: ghc-8.2.2
8181
compilerKind: ghc
8282
compilerVersion: 8.2.2
83-
setup-method: hvr-ppa
83+
setup-method: ghcup
8484
allow-failure: false
8585
fail-fast: false
8686
steps:
8787
- name: apt
8888
run: |
8989
apt-get update
90-
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
91-
if [ "${{ matrix.setup-method }}" = ghcup ]; then
92-
mkdir -p "$HOME/.ghcup/bin"
93-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
94-
chmod a+x "$HOME/.ghcup/bin/ghcup"
95-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
96-
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
97-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
98-
apt-get update
99-
apt-get install -y libbrotli-dev
100-
else
101-
apt-add-repository -y 'ppa:hvr/ghc'
102-
apt-get update
103-
apt-get install -y "$HCNAME" libbrotli-dev
104-
mkdir -p "$HOME/.ghcup/bin"
105-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
106-
chmod a+x "$HOME/.ghcup/bin/ghcup"
107-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
108-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
109-
fi
90+
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
91+
mkdir -p "$HOME/.ghcup/bin"
92+
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
93+
chmod a+x "$HOME/.ghcup/bin/ghcup"
94+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
95+
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
96+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
97+
apt-get update
98+
apt-get install -y libbrotli-dev
11099
env:
111100
HCKIND: ${{ matrix.compilerKind }}
112101
HCNAME: ${{ matrix.compiler }}
@@ -118,27 +107,18 @@ jobs:
118107
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
119108
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
120109
HCDIR=/opt/$HCKIND/$HCVER
121-
if [ "${{ matrix.setup-method }}" = ghcup ]; then
122-
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
123-
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
124-
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
125-
echo "HC=$HC" >> "$GITHUB_ENV"
126-
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
127-
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
128-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
129-
else
130-
HC=$HCDIR/bin/$HCKIND
131-
echo "HC=$HC" >> "$GITHUB_ENV"
132-
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
133-
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
134-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
135-
fi
136-
110+
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
111+
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
112+
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
113+
echo "HC=$HC" >> "$GITHUB_ENV"
114+
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
115+
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
116+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
137117
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
138118
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
139119
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
140120
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
141-
if [ $((HCNUMVER >= 90800)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
121+
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
142122
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
143123
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
144124
env:
@@ -167,18 +147,6 @@ jobs:
167147
repository hackage.haskell.org
168148
url: http://hackage.haskell.org/
169149
EOF
170-
if $HEADHACKAGE; then
171-
cat >> $CABAL_CONFIG <<EOF
172-
repository head.hackage.ghc.haskell.org
173-
url: https://ghc.gitlab.haskell.org/head.hackage/
174-
secure: True
175-
root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
176-
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
177-
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
178-
key-threshold: 3
179-
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
180-
EOF
181-
fi
182150
cat >> $CABAL_CONFIG <<EOF
183151
program-default-options
184152
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -230,9 +198,6 @@ jobs:
230198
echo " ghc-options: -Werror=missing-methods" >> cabal.project
231199
cat >> cabal.project <<EOF
232200
EOF
233-
if $HEADHACKAGE; then
234-
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
235-
fi
236201
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(Cabal|binary|hackage-cli)$/; }' >> cabal.project.local
237202
cat cabal.project
238203
cat cabal.project.local

hackage-cli.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ build-type: Simple
1818
-- Supported GHC versions when building with cabal:
1919
tested-with:
2020
-- Keep in descending order.
21-
GHC == 9.8.0
21+
GHC == 9.8.1
2222
GHC == 9.6.3
2323
GHC == 9.4.7
2424
GHC == 9.2.8

0 commit comments

Comments
 (0)