Skip to content

Commit 5f8a2a6

Browse files
authored
Merge pull request #10 from hesselink/ghc-9.4
Support GHC-9.4
2 parents c7c7f4d + d446fa6 commit 5f8a2a6

File tree

2 files changed

+30
-32
lines changed

2 files changed

+30
-32
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 25 additions & 28 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.13.20211029
11+
# version: 0.15.20220808
1212
#
13-
# REGENDATA ("0.13.20211029",["github","cabal.project"])
13+
# REGENDATA ("0.15.20220808",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -23,22 +23,29 @@ on:
2323
jobs:
2424
linux:
2525
name: Haskell-CI - Linux - ${{ matrix.compiler }}
26-
runs-on: ubuntu-18.04
26+
runs-on: ubuntu-20.04
27+
timeout-minutes:
28+
60
2729
container:
2830
image: buildpack-deps:bionic
2931
continue-on-error: ${{ matrix.allow-failure }}
3032
strategy:
3133
matrix:
3234
include:
33-
- compiler: ghc-9.2.1
35+
- compiler: ghc-9.4.1
3436
compilerKind: ghc
35-
compilerVersion: 9.2.1
37+
compilerVersion: 9.4.1
3638
setup-method: ghcup
37-
allow-failure: true
38-
- compiler: ghc-9.0.1
39+
allow-failure: false
40+
- compiler: ghc-9.2.4
3941
compilerKind: ghc
40-
compilerVersion: 9.0.1
41-
setup-method: hvr-ppa
42+
compilerVersion: 9.2.4
43+
setup-method: ghcup
44+
allow-failure: false
45+
- compiler: ghc-9.0.2
46+
compilerKind: ghc
47+
compilerVersion: 9.0.2
48+
setup-method: ghcup
4249
allow-failure: false
4350
- compiler: ghc-8.10.4
4451
compilerKind: ghc
@@ -108,18 +115,18 @@ jobs:
108115
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
109116
if [ "${{ matrix.setup-method }}" = ghcup ]; then
110117
mkdir -p "$HOME/.ghcup/bin"
111-
curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$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"
112119
chmod a+x "$HOME/.ghcup/bin/ghcup"
113-
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
114-
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
120+
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
121+
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
115122
else
116123
apt-add-repository -y 'ppa:hvr/ghc'
117124
apt-get update
118125
apt-get install -y "$HCNAME"
119126
mkdir -p "$HOME/.ghcup/bin"
120-
curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$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"
121128
chmod a+x "$HOME/.ghcup/bin/ghcup"
122-
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
129+
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
123130
fi
124131
env:
125132
HCKIND: ${{ matrix.compilerKind }}
@@ -150,7 +157,7 @@ jobs:
150157
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
151158
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
152159
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
153-
if [ $((HCNUMVER >= 90200)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
160+
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
154161
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
155162
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
156163
env:
@@ -179,17 +186,10 @@ jobs:
179186
repository hackage.haskell.org
180187
url: http://hackage.haskell.org/
181188
EOF
182-
if $HEADHACKAGE; then
183189
cat >> $CABAL_CONFIG <<EOF
184-
repository head.hackage.ghc.haskell.org
185-
url: https://ghc.gitlab.haskell.org/head.hackage/
186-
secure: True
187-
root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
188-
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
189-
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
190-
key-threshold: 3
190+
program-default-options
191+
ghc-options: $GHCJOBS +RTS -M3G -RTS
191192
EOF
192-
fi
193193
cat $CABAL_CONFIG
194194
- name: versions
195195
run: |
@@ -237,9 +237,6 @@ jobs:
237237
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
238238
cat >> cabal.project <<EOF
239239
EOF
240-
if $HEADHACKAGE; then
241-
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1,/g')" >> cabal.project
242-
fi
243240
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(type-equality)$/; }' >> cabal.project.local
244241
cat cabal.project
245242
cat cabal.project.local
@@ -269,7 +266,7 @@ jobs:
269266
${CABAL} -vnormal check
270267
- name: haddock
271268
run: |
272-
$CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
269+
$CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
273270
- name: unconstrained build
274271
run: |
275272
rm -f cabal.project.local

type-equality.cabal

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: type-equality
22
version: 1
3-
x-revision: 3
3+
x-revision: 4
44
stability: provisional
55
cabal-version: >=1.10
66
build-type: Simple
@@ -41,16 +41,17 @@ tested-with:
4141
|| ==8.6.5
4242
|| ==8.8.4
4343
|| ==8.10.4
44-
|| ==9.0.1
45-
|| ==9.2.1
44+
|| ==9.0.2
45+
|| ==9.2.4
46+
|| ==9.4.1
4647

4748
source-repository head
4849
type: git
4950
location: git://github.com/hesselink/type-equality
5051

5152
library
5253
default-language: Haskell2010
53-
build-depends: base >=4.3 && <4.17
54+
build-depends: base >=4.3 && <4.18
5455

5556
if !impl(ghc >=7.8)
5657
hs-source-dirs: src-old

0 commit comments

Comments
 (0)