Skip to content

Commit 8b6ea00

Browse files
authored
Merge pull request #12 from hesselink/ghc-9.6
Add GHC-9.6 CI job
2 parents 5f8a2a6 + 667e67d commit 8b6ea00

File tree

2 files changed

+34
-22
lines changed

2 files changed

+34
-22
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 28 additions & 17 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.20220808
11+
# version: 0.15.20230312
1212
#
13-
# REGENDATA ("0.15.20220808",["github","cabal.project"])
13+
# REGENDATA ("0.15.20230312",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -32,25 +32,30 @@ jobs:
3232
strategy:
3333
matrix:
3434
include:
35-
- compiler: ghc-9.4.1
35+
- compiler: ghc-9.6.1
3636
compilerKind: ghc
37-
compilerVersion: 9.4.1
37+
compilerVersion: 9.6.1
3838
setup-method: ghcup
3939
allow-failure: false
40-
- compiler: ghc-9.2.4
40+
- compiler: ghc-9.4.4
4141
compilerKind: ghc
42-
compilerVersion: 9.2.4
42+
compilerVersion: 9.4.4
43+
setup-method: ghcup
44+
allow-failure: false
45+
- compiler: ghc-9.2.7
46+
compilerKind: ghc
47+
compilerVersion: 9.2.7
4348
setup-method: ghcup
4449
allow-failure: false
4550
- compiler: ghc-9.0.2
4651
compilerKind: ghc
4752
compilerVersion: 9.0.2
4853
setup-method: ghcup
4954
allow-failure: false
50-
- compiler: ghc-8.10.4
55+
- compiler: ghc-8.10.7
5156
compilerKind: ghc
52-
compilerVersion: 8.10.4
53-
setup-method: hvr-ppa
57+
compilerVersion: 8.10.7
58+
setup-method: ghcup
5459
allow-failure: false
5560
- compiler: ghc-8.8.4
5661
compilerKind: ghc
@@ -118,15 +123,15 @@ jobs:
118123
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
119124
chmod a+x "$HOME/.ghcup/bin/ghcup"
120125
"$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)
126+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
122127
else
123128
apt-add-repository -y 'ppa:hvr/ghc'
124129
apt-get update
125130
apt-get install -y "$HCNAME"
126131
mkdir -p "$HOME/.ghcup/bin"
127132
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
128133
chmod a+x "$HOME/.ghcup/bin/ghcup"
129-
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
134+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
130135
fi
131136
env:
132137
HCKIND: ${{ matrix.compilerKind }}
@@ -144,13 +149,13 @@ jobs:
144149
echo "HC=$HC" >> "$GITHUB_ENV"
145150
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
146151
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
147-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
152+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
148153
else
149154
HC=$HCDIR/bin/$HCKIND
150155
echo "HC=$HC" >> "$GITHUB_ENV"
151156
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
152157
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
153-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
158+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
154159
fi
155160
156161
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -209,7 +214,7 @@ jobs:
209214
chmod a+x $HOME/.cabal/bin/cabal-plan
210215
cabal-plan --version
211216
- name: checkout
212-
uses: actions/checkout@v2
217+
uses: actions/checkout@v3
213218
with:
214219
path: source
215220
- name: initial cabal.project for sdist
@@ -244,8 +249,8 @@ jobs:
244249
run: |
245250
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
246251
cabal-plan
247-
- name: cache
248-
uses: actions/cache@v2
252+
- name: restore cache
253+
uses: actions/cache/restore@v3
249254
with:
250255
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
251256
path: ~/.cabal/store
@@ -266,8 +271,14 @@ jobs:
266271
${CABAL} -vnormal check
267272
- name: haddock
268273
run: |
269-
$CABAL v2-haddock --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
274+
$CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
270275
- name: unconstrained build
271276
run: |
272277
rm -f cabal.project.local
273278
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
279+
- name: save cache
280+
uses: actions/cache/save@v3
281+
if: always()
282+
with:
283+
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
284+
path: ~/.cabal/store

type-equality.cabal

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: type-equality
22
version: 1
3-
x-revision: 4
3+
x-revision: 5
44
stability: provisional
55
cabal-version: >=1.10
66
build-type: Simple
@@ -40,18 +40,19 @@ tested-with:
4040
|| ==8.4.4
4141
|| ==8.6.5
4242
|| ==8.8.4
43-
|| ==8.10.4
43+
|| ==8.10.7
4444
|| ==9.0.2
45-
|| ==9.2.4
46-
|| ==9.4.1
45+
|| ==9.2.7
46+
|| ==9.4.4
47+
|| ==9.6.1
4748

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

5253
library
5354
default-language: Haskell2010
54-
build-depends: base >=4.3 && <4.18
55+
build-depends: base >=4.3 && <4.19
5556

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

0 commit comments

Comments
 (0)