Skip to content

Commit ca50b27

Browse files
authored
Merge pull request #50 from haskellari/ghc-9.4
Support GHC-9.4
2 parents 83d04b0 + 034286d commit ca50b27

File tree

2 files changed

+13
-28
lines changed

2 files changed

+13
-28
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 10 additions & 26 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.15.20220609
11+
# version: 0.15.20220808
1212
#
13-
# REGENDATA ("0.15.20220609",["github","cabal.project"])
13+
# REGENDATA ("0.15.20220808",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -32,14 +32,14 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.4.0.20220523
35+
- compiler: ghc-9.4.1
3636
compilerKind: ghc
37-
compilerVersion: 9.4.0.20220523
37+
compilerVersion: 9.4.1
3838
setup-method: ghcup
39-
allow-failure: true
40-
- compiler: ghc-9.2.3
39+
allow-failure: false
40+
- compiler: ghc-9.2.4
4141
compilerKind: ghc
42-
compilerVersion: 9.2.3
42+
compilerVersion: 9.2.4
4343
setup-method: ghcup
4444
allow-failure: false
4545
- compiler: ghc-9.0.1
@@ -115,17 +115,16 @@ jobs:
115115
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
116116
if [ "${{ matrix.setup-method }}" = ghcup ]; then
117117
mkdir -p "$HOME/.ghcup/bin"
118-
curl -sL https://downloads.haskell.org/ghcup/0.1.17.8/x86_64-linux-ghcup-0.1.17.8 > "$HOME/.ghcup/bin/ghcup"
118+
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
119119
chmod a+x "$HOME/.ghcup/bin/ghcup"
120-
if $HEADHACKAGE; then "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml; fi
121120
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
122121
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
123122
else
124123
apt-add-repository -y 'ppa:hvr/ghc'
125124
apt-get update
126125
apt-get install -y "$HCNAME"
127126
mkdir -p "$HOME/.ghcup/bin"
128-
curl -sL https://downloads.haskell.org/ghcup/0.1.17.8/x86_64-linux-ghcup-0.1.17.8 > "$HOME/.ghcup/bin/ghcup"
127+
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
129128
chmod a+x "$HOME/.ghcup/bin/ghcup"
130129
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
131130
fi
@@ -158,7 +157,7 @@ jobs:
158157
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
159158
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
160159
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
161-
if [ $((HCNUMVER >= 90400)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
160+
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
162161
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
163162
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
164163
env:
@@ -187,18 +186,6 @@ jobs:
187186
repository hackage.haskell.org
188187
url: http://hackage.haskell.org/
189188
EOF
190-
if $HEADHACKAGE; then
191-
cat >> $CABAL_CONFIG <<EOF
192-
repository head.hackage.ghc.haskell.org
193-
url: https://ghc.gitlab.haskell.org/head.hackage/
194-
secure: True
195-
root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
196-
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
197-
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
198-
key-threshold: 3
199-
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
200-
EOF
201-
fi
202189
cat >> $CABAL_CONFIG <<EOF
203190
program-default-options
204191
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -259,9 +246,6 @@ jobs:
259246
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
260247
cat >> cabal.project <<EOF
261248
EOF
262-
if $HEADHACKAGE; then
263-
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
264-
fi
265249
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(some)$/; }' >> cabal.project.local
266250
cat cabal.project
267251
cat cabal.project.local

some.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: some
22
version: 1.0.4
3+
x-revision: 1
34
cabal-version: >=1.10
45
build-type: Simple
56
author:
@@ -37,7 +38,7 @@ tested-with:
3738
|| ==8.8.4
3839
|| ==8.10.4
3940
|| ==9.0.1
40-
|| ==9.2.3
41+
|| ==9.2.4
4142
|| ==9.4.1
4243

4344
extra-source-files: ChangeLog.md
@@ -73,7 +74,7 @@ library
7374

7475
other-modules: Data.GADT.Internal
7576
build-depends:
76-
base >=4.3 && <4.17
77+
base >=4.3 && <4.18
7778
, deepseq >=1.3.0.0 && <1.5
7879

7980
if !impl(ghc >=8.2)

0 commit comments

Comments
 (0)