Skip to content

Commit a05eed4

Browse files
committed
Update CI to GHCs 9.6.6 and 9.8.4 (and Stack to 9.10.1)
1 parent 9a1d5ee commit a05eed4

File tree

6 files changed

+33
-47
lines changed

6 files changed

+33
-47
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#
77
# haskell-ci regenerate
88
#
9-
# For more information, see https://github.com/andreasabel/haskell-ci
9+
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.19.20240630
11+
# version: 0.19.20241223
1212
#
13-
# REGENDATA ("0.19.20240630",["github","hackage-cli.cabal"])
13+
# REGENDATA ("0.19.20241223",["github","hackage-cli.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -37,14 +37,14 @@ jobs:
3737
compilerVersion: 9.10.1
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.8.2
40+
- compiler: ghc-9.8.4
4141
compilerKind: ghc
42-
compilerVersion: 9.8.2
42+
compilerVersion: 9.8.4
4343
setup-method: ghcup
4444
allow-failure: false
45-
- compiler: ghc-9.6.5
45+
- compiler: ghc-9.6.6
4646
compilerKind: ghc
47-
compilerVersion: 9.6.5
47+
compilerVersion: 9.6.6
4848
setup-method: ghcup
4949
allow-failure: false
5050
- compiler: ghc-9.4.8
@@ -89,17 +89,30 @@ jobs:
8989
allow-failure: false
9090
fail-fast: false
9191
steps:
92-
- name: apt
92+
- name: apt-get install
9393
run: |
9494
apt-get update
9595
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
96+
apt-get install -y libbrotli-dev
97+
- name: Install GHCup
98+
run: |
9699
mkdir -p "$HOME/.ghcup/bin"
97-
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
100+
curl -sL https://downloads.haskell.org/ghcup/0.1.30.0/x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
98101
chmod a+x "$HOME/.ghcup/bin/ghcup"
102+
- name: Install cabal-install
103+
run: |
104+
"$HOME/.ghcup/bin/ghcup" install cabal 3.14.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
105+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
106+
- name: Install GHC (GHCup)
107+
if: matrix.setup-method == 'ghcup'
108+
run: |
99109
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
100-
"$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
101-
apt-get update
102-
apt-get install -y libbrotli-dev
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"
103116
env:
104117
HCKIND: ${{ matrix.compilerKind }}
105118
HCNAME: ${{ matrix.compiler }}
@@ -110,21 +123,12 @@ jobs:
110123
echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
111124
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
112125
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
113-
HCDIR=/opt/$HCKIND/$HCVER
114-
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
115-
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
116-
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
117-
echo "HC=$HC" >> "$GITHUB_ENV"
118-
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
119-
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
120-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
121126
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
122127
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
123128
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
124129
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
125130
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
126131
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
127-
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
128132
env:
129133
HCKIND: ${{ matrix.compilerKind }}
130134
HCNAME: ${{ matrix.compiler }}
@@ -240,8 +244,8 @@ jobs:
240244
rm -f cabal.project.local
241245
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
242246
- name: save cache
243-
uses: actions/cache/save@v4
244247
if: always()
248+
uses: actions/cache/save@v4
245249
with:
246250
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
247251
path: ~/.cabal/store

.github/workflows/stack.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
defaults:
3333
run:
3434
shell: bash
35+
3536
steps:
3637
- uses: actions/checkout@v4
3738

hackage-cli.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ build-type: Simple
1919
tested-with:
2020
-- Keep in descending order.
2121
GHC == 9.10.1
22-
GHC == 9.8.2
23-
GHC == 9.6.5
22+
GHC == 9.8.4
23+
GHC == 9.6.6
2424
GHC == 9.4.8
2525
GHC == 9.2.8
2626
GHC == 9.0.2
@@ -38,6 +38,7 @@ extra-source-files:
3838
fixtures/*.diff
3939
fixtures/*.cabal
4040
-- Supported GHC versions when building with stack:
41+
stack-9.10.yaml
4142
stack-9.8.yaml
4243
stack-9.6.yaml
4344

stack-9.10.yaml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,3 @@
1-
resolver: nightly-2024-07-01
1+
resolver: nightly-2025-01-06
22
compiler: ghc-9.10.1
33
compiler-check: match-exact
4-
5-
# Libraries shipped with GHC 9.10.1:
6-
extra-deps:
7-
- Cabal-3.12.0.0
8-
- Cabal-syntax-3.12.0.0
9-
- directory-1.3.8.3
10-
- filepath-1.5.2.0
11-
- process-1.6.19.0
12-
- unix-2.8.5.1
13-
# For Windows:
14-
- Win32-2.14.0.0
15-
- time-1.12.2
16-
17-
flags:
18-
directory:
19-
os-string: true
20-
unix:
21-
os-string: true
22-
Win32:
23-
os-string: true

stack-9.6.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: lts-22.27
1+
resolver: lts-22.43

stack-9.8.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
resolver: nightly-2024-07-01
1+
resolver: lts-23.3

0 commit comments

Comments
 (0)