Skip to content

Commit 2d565c0

Browse files
committed
Bump CI to GHC 9.12.2
1 parent bb51eeb commit 2d565c0

File tree

4 files changed

+48
-36
lines changed

4 files changed

+48
-36
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 33 additions & 23 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.20240703
11+
# version: 0.19.20250506
1212
#
13-
# REGENDATA ("0.19.20240703",["github","shelly.cabal"])
13+
# REGENDATA ("0.19.20250506",["github","shelly.cabal"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -23,7 +23,7 @@ on:
2323
jobs:
2424
linux:
2525
name: Haskell-CI - Linux - ${{ matrix.compiler }}
26-
runs-on: ubuntu-20.04
26+
runs-on: ubuntu-24.04
2727
timeout-minutes:
2828
60
2929
container:
@@ -32,19 +32,24 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.10.1
35+
- compiler: ghc-9.12.2
3636
compilerKind: ghc
37-
compilerVersion: 9.10.1
37+
compilerVersion: 9.12.2
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.8.2
40+
- compiler: ghc-9.10.2
4141
compilerKind: ghc
42-
compilerVersion: 9.8.2
42+
compilerVersion: 9.10.2
4343
setup-method: ghcup
4444
allow-failure: false
45-
- compiler: ghc-9.6.5
45+
- compiler: ghc-9.8.4
4646
compilerKind: ghc
47-
compilerVersion: 9.6.5
47+
compilerVersion: 9.8.4
48+
setup-method: ghcup
49+
allow-failure: false
50+
- compiler: ghc-9.6.7
51+
compilerKind: ghc
52+
compilerVersion: 9.6.7
4853
setup-method: ghcup
4954
allow-failure: false
5055
- compiler: ghc-9.4.8
@@ -89,15 +94,29 @@ jobs:
8994
allow-failure: false
9095
fail-fast: false
9196
steps:
92-
- name: apt
97+
- name: apt-get install
9398
run: |
9499
apt-get update
95100
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
101+
- name: Install GHCup
102+
run: |
96103
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"
104+
curl -sL https://downloads.haskell.org/ghcup/0.1.50.1/x86_64-linux-ghcup-0.1.50.1 > "$HOME/.ghcup/bin/ghcup"
98105
chmod a+x "$HOME/.ghcup/bin/ghcup"
106+
- name: Install cabal-install
107+
run: |
108+
"$HOME/.ghcup/bin/ghcup" install cabal 3.14.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
109+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
110+
- name: Install GHC (GHCup)
111+
if: matrix.setup-method == 'ghcup'
112+
run: |
99113
"$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)
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"
101120
env:
102121
HCKIND: ${{ matrix.compilerKind }}
103122
HCNAME: ${{ matrix.compiler }}
@@ -108,21 +127,12 @@ jobs:
108127
echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
109128
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
110129
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
111-
HCDIR=/opt/$HCKIND/$HCVER
112-
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
113-
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
114-
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
115-
echo "HC=$HC" >> "$GITHUB_ENV"
116-
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
117-
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
118-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
119130
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
120131
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
121132
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
122133
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
123134
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
124135
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
125-
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
126136
env:
127137
HCKIND: ${{ matrix.compilerKind }}
128138
HCNAME: ${{ matrix.compiler }}
@@ -238,8 +248,8 @@ jobs:
238248
rm -f cabal.project.local
239249
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
240250
- name: save cache
241-
uses: actions/cache/save@v4
242251
if: always()
252+
uses: actions/cache/save@v4
243253
with:
244254
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
245255
path: ~/.cabal/store

.github/workflows/mac-win-ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ jobs:
1515
matrix:
1616
os: [macOS-latest, windows-latest]
1717
ghc:
18-
- '9.2'
19-
- '9.4'
2018
- '9.6'
2119
- '9.8'
2220
- '9.10'
21+
- '9.12'
2322
fail-fast: false
2423

2524
# 2021-11-14

.github/workflows/stack.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
2020
matrix:
2121
os: [ubuntu-latest]
2222
plan:
23-
- ghc: '9.8.2'
24-
resolver: 'nightly-2024-07-02'
25-
- ghc: '9.6.5'
26-
resolver: 'lts-22.27'
23+
- ghc: '9.10.2'
24+
resolver: 'nightly-2025-05-11'
25+
- ghc: '9.8.4'
26+
resolver: 'lts-23.21'
27+
- ghc: '9.6.7'
28+
resolver: 'lts-22.44'
2729
- ghc: '9.4.8'
2830
resolver: 'lts-21.25'
2931
- ghc: '9.2.8'
@@ -37,13 +39,13 @@ jobs:
3739
include:
3840
- os: windows-latest
3941
plan:
40-
ghc: '9.8.2'
41-
resolver: 'nightly-2024-07-02'
42+
ghc: '9.10.2'
43+
resolver: 'nightly-2025-05-11'
4244

4345
- os: macos-latest
4446
plan:
45-
ghc: '9.8.2'
46-
resolver: 'nightly-2024-07-02'
47+
ghc: '9.10.2'
48+
resolver: 'nightly-2025-05-11'
4749

4850
runs-on: ${{ matrix.os }}
4951
env:

shelly.cabal

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ Category: Development
3131
Build-type: Simple
3232

3333
tested-with:
34-
GHC == 9.10.1
35-
GHC == 9.8.2
36-
GHC == 9.6.5
34+
GHC == 9.12.2
35+
GHC == 9.10.2
36+
GHC == 9.8.4
37+
GHC == 9.6.7
3738
GHC == 9.4.8
3839
GHC == 9.2.8
3940
GHC == 9.0.2

0 commit comments

Comments
 (0)