Skip to content

Commit 56fd650

Browse files
authored
Merge pull request #53 from haskell-hvr/ghc-9.12
Support GHC-9.12
2 parents 0375e10 + 823f369 commit 56fd650

File tree

2 files changed

+43
-26
lines changed

2 files changed

+43
-26
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 36 additions & 20 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.19.20240512
11+
# version: 0.19.20241220
1212
#
13-
# REGENDATA ("0.19.20240512",["github","cabal.project"])
13+
# REGENDATA ("0.19.20241220",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -32,14 +32,24 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.8.2
35+
- compiler: ghc-9.12.1
3636
compilerKind: ghc
37-
compilerVersion: 9.8.2
37+
compilerVersion: 9.12.1
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.6.5
40+
- compiler: ghc-9.10.1
4141
compilerKind: ghc
42-
compilerVersion: 9.6.5
42+
compilerVersion: 9.10.1
43+
setup-method: ghcup
44+
allow-failure: false
45+
- compiler: ghc-9.8.4
46+
compilerKind: ghc
47+
compilerVersion: 9.8.4
48+
setup-method: ghcup
49+
allow-failure: false
50+
- compiler: ghc-9.6.6
51+
compilerKind: ghc
52+
compilerVersion: 9.6.6
4353
setup-method: ghcup
4454
allow-failure: false
4555
- compiler: ghc-9.4.8
@@ -74,15 +84,30 @@ jobs:
7484
allow-failure: false
7585
fail-fast: false
7686
steps:
77-
- name: apt
87+
- name: apt-get install
7888
run: |
7989
apt-get update
8090
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
91+
- name: Install GHCup
92+
run: |
8193
mkdir -p "$HOME/.ghcup/bin"
82-
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
94+
curl -sL https://downloads.haskell.org/ghcup/0.1.30.0/x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
8395
chmod a+x "$HOME/.ghcup/bin/ghcup"
96+
- name: Install cabal-install (prerelease)
97+
run: |
98+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
99+
"$HOME/.ghcup/bin/ghcup" install cabal 3.15.0.0.2024.10.3 || (cat "$HOME"/.ghcup/logs/*.* && false)
100+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.15.0.0.2024.10.3 -vnormal+nowrap" >> "$GITHUB_ENV"
101+
- name: Install GHC (GHCup)
102+
if: matrix.setup-method == 'ghcup'
103+
run: |
84104
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
85-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
105+
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
106+
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
107+
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
108+
echo "HC=$HC" >> "$GITHUB_ENV"
109+
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
110+
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
86111
env:
87112
HCKIND: ${{ matrix.compilerKind }}
88113
HCNAME: ${{ matrix.compiler }}
@@ -93,21 +118,12 @@ jobs:
93118
echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
94119
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
95120
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
96-
HCDIR=/opt/$HCKIND/$HCVER
97-
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
98-
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
99-
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
100-
echo "HC=$HC" >> "$GITHUB_ENV"
101-
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
102-
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
103-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
104121
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
105122
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
106123
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
107124
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
108125
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
109126
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
110-
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
111127
env:
112128
HCKIND: ${{ matrix.compilerKind }}
113129
HCNAME: ${{ matrix.compiler }}
@@ -185,7 +201,7 @@ jobs:
185201
echo " ghc-options: -Werror=missing-methods" >> cabal.project
186202
cat >> cabal.project <<EOF
187203
EOF
188-
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(text-short)$/; }' >> cabal.project.local
204+
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(text-short)$/; }' >> cabal.project.local
189205
cat cabal.project
190206
cat cabal.project.local
191207
- name: dump install plan
@@ -247,8 +263,8 @@ jobs:
247263
if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring ==0.11.*' all ; fi
248264
if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='bytestring ==0.11.*' all ; fi
249265
- name: save cache
250-
uses: actions/cache/save@v4
251266
if: always()
267+
uses: actions/cache/save@v4
252268
with:
253269
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
254270
path: ~/.cabal/store

text-short.cabal

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cabal-version: 1.18
22
name: text-short
33
version: 0.1.6
4-
x-revision: 2
4+
x-revision: 3
55
synopsis: Memory-efficient representation of Unicode text strings
66
license: BSD3
77
license-file: LICENSE
@@ -22,9 +22,10 @@ tested-with:
2222
|| ==9.0.2
2323
|| ==9.2.8
2424
|| ==9.4.8
25-
|| ==9.6.5
26-
|| ==9.8.2
25+
|| ==9.6.6
26+
|| ==9.8.4
2727
|| ==9.10.1
28+
|| ==9.12.1
2829

2930
extra-source-files: ChangeLog.md
3031

@@ -45,13 +46,13 @@ library
4546

4647
other-modules: Data.Text.Short.Internal
4748
build-depends:
48-
base >=4.12 && <4.21
49+
base >=4.12 && <4.22
4950
, binary >=0.8.6.0 && <0.9
5051
, bytestring >=0.10.8.2 && <0.13
5152
, deepseq >=1.4.4.0 && <1.6
52-
, ghc-prim >=0.5.3 && <0.12
53+
, ghc-prim >=0.5.3 && <0.14
5354
, hashable >=1.4.4.0 && <1.6
54-
, template-haskell >=2.14.0.0 && <2.23
55+
, template-haskell >=2.14.0.0 && <2.24
5556
, text >=1.2.3.1 && <1.3 || >=2.0 && <2.2
5657

5758
other-modules: PrimOps

0 commit comments

Comments
 (0)