Skip to content

Commit adc777f

Browse files
authored
Merge pull request #90 from haskellari/ghc-9.12
Support GHC-9.12
2 parents 33872e2 + 8892359 commit adc777f

File tree

3 files changed

+37
-30
lines changed

3 files changed

+37
-30
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 29 additions & 24 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.20241219
1212
#
13-
# REGENDATA ("0.19.20240512",["github","cabal.project"])
13+
# REGENDATA ("0.19.20241219",["github","cabal.project"])
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.4
45+
- compiler: ghc-9.6.6
4646
compilerKind: ghc
47-
compilerVersion: 9.6.4
47+
compilerVersion: 9.6.6
4848
setup-method: ghcup
4949
allow-failure: false
5050
- compiler: ghc-9.4.8
@@ -79,17 +79,31 @@ jobs:
7979
allow-failure: false
8080
fail-fast: false
8181
steps:
82-
- name: apt
82+
- name: apt-get install
8383
run: |
8484
apt-get update
8585
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
86+
apt-get install -y hugs libhugs-time-bundled libtestu01-0-dev
87+
- name: Install GHCup
88+
run: |
8689
mkdir -p "$HOME/.ghcup/bin"
87-
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
90+
curl -sL https://downloads.haskell.org/ghcup/0.1.30.0/x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
8891
chmod a+x "$HOME/.ghcup/bin/ghcup"
92+
- name: Install cabal-install (prerelease)
93+
run: |
94+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
95+
"$HOME/.ghcup/bin/ghcup" install cabal 3.15.0.0.2024.10.3 || (cat "$HOME"/.ghcup/logs/*.* && false)
96+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.15.0.0.2024.10.3 -vnormal+nowrap" >> "$GITHUB_ENV"
97+
- name: Install GHC (GHCup)
98+
if: matrix.setup-method == 'ghcup'
99+
run: |
89100
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
90-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
91-
apt-get update
92-
apt-get install -y hugs libhugs-time-bundled libtestu01-0-dev
101+
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
102+
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
103+
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
104+
echo "HC=$HC" >> "$GITHUB_ENV"
105+
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
106+
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
93107
env:
94108
HCKIND: ${{ matrix.compilerKind }}
95109
HCNAME: ${{ matrix.compiler }}
@@ -100,21 +114,12 @@ jobs:
100114
echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
101115
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
102116
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
103-
HCDIR=/opt/$HCKIND/$HCVER
104-
HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
105-
HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
106-
HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
107-
echo "HC=$HC" >> "$GITHUB_ENV"
108-
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
109-
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
110-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
111117
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
112118
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
113119
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
114120
echo "ARG_BENCH=--disable-benchmarks" >> "$GITHUB_ENV"
115121
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
116122
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
117-
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
118123
env:
119124
HCKIND: ${{ matrix.compilerKind }}
120125
HCNAME: ${{ matrix.compiler }}
@@ -166,8 +171,8 @@ jobs:
166171
- name: install cabal-docspec
167172
run: |
168173
mkdir -p $HOME/.cabal/bin
169-
curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20240414/cabal-docspec-0.0.0.20240414-x86_64-linux.xz > cabal-docspec.xz
170-
echo '2d18a3f79619e8ec5f11870f926f6dc2616e02a6c889315b7f82044b95a1adb9 cabal-docspec.xz' | sha256sum -c -
174+
curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20240703/cabal-docspec-0.0.0.20240703-x86_64-linux.xz > cabal-docspec.xz
175+
echo '48bf3b7fd2f7f0caa6162afee57a755be8523e7f467b694900eb420f5f9a7b76 cabal-docspec.xz' | sha256sum -c -
171176
xz -d < cabal-docspec.xz > $HOME/.cabal/bin/cabal-docspec
172177
rm -f cabal-docspec.xz
173178
chmod a+x $HOME/.cabal/bin/cabal-docspec
@@ -204,7 +209,7 @@ jobs:
204209
allow-newer: hashable-1.4.4.0:base
205210
allow-newer: hashable-1.4.4.0:containers
206211
EOF
207-
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(splitmix)$/; }' >> cabal.project.local
212+
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any.$_ installed\n" unless /^(splitmix)$/; }' >> cabal.project.local
208213
cat cabal.project
209214
cat cabal.project.local
210215
- name: dump install plan
@@ -282,8 +287,8 @@ jobs:
282287
if [ $((HCNUMVER < 90400)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='time ^>=1.10' --dependencies-only -j2 all ; fi
283288
if [ $((HCNUMVER < 90400)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='time ^>=1.10' all ; fi
284289
- name: save cache
285-
uses: actions/cache/save@v4
286290
if: always()
291+
uses: actions/cache/save@v4
287292
with:
288293
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
289294
path: ~/.cabal/store

Changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# 0.1.0.5
1+
# 0.1.1
22

33
- Drop support for GHCs prior 8.6.5
4+
- Support GHC-9.12
45

56
# 0.1.0.4
67

splitmix.cabal

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ tested-with:
3939
|| ==9.0.2
4040
|| ==9.2.8
4141
|| ==9.4.8
42-
|| ==9.6.4
43-
|| ==9.8.2
42+
|| ==9.6.6
43+
|| ==9.8.4
4444
|| ==9.10.1
45+
|| ==9.11.1
4546

4647
extra-source-files:
4748
Changelog.md
@@ -71,7 +72,7 @@ library
7172
-- ghc-options: -fplugin=DumpCore -fplugin-opt DumpCore:core-html
7273

7374
build-depends:
74-
base >=4.12.0.0 && <4.21
75+
base >=4.12.0.0 && <4.22
7576
, deepseq >=1.4.4.0 && <1.6
7677

7778
if flag(optimised-mixer)
@@ -96,7 +97,7 @@ library
9697

9798
else
9899
cpp-options: -DSPLITMIX_INIT_COMPAT=1
99-
build-depends: time >=1.2.0.3 && <1.13
100+
build-depends: time >=1.2.0.3 && <1.15
100101

101102
source-repository head
102103
type: git
@@ -219,7 +220,7 @@ test-suite splitmix-testu01
219220
extra-libraries: testu01
220221
build-depends:
221222
base
222-
, base-compat-batteries >=0.10.5 && <0.14
223+
, base-compat-batteries >=0.10.5 && <0.15
223224
, splitmix
224225

225226
test-suite initialization

0 commit comments

Comments
 (0)