Skip to content

Commit 99cfb6d

Browse files
committed
Updated test matrix.
1 parent b38869c commit 99cfb6d

File tree

2 files changed

+19
-36
lines changed

2 files changed

+19
-36
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 16 additions & 33 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.17.20230827
11+
# version: 0.17.20240109
1212
#
13-
# REGENDATA ("0.17.20230827",["github","StateVar.cabal","--output=.github/workflows/haskell-ci.yml"])
13+
# REGENDATA ("0.17.20240109",["github","StateVar.cabal","--output=.github/workflows/haskell-ci.yml"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -28,19 +28,19 @@ jobs:
2828
strategy:
2929
matrix:
3030
include:
31-
- compiler: ghc-9.8.0.20230822
31+
- compiler: ghc-9.8.1
3232
compilerKind: ghc
33-
compilerVersion: 9.8.0.20230822
33+
compilerVersion: 9.8.1
3434
setup-method: ghcup
35-
allow-failure: true
36-
- compiler: ghc-9.6.2
35+
allow-failure: false
36+
- compiler: ghc-9.6.4
3737
compilerKind: ghc
38-
compilerVersion: 9.6.2
38+
compilerVersion: 9.6.4
3939
setup-method: ghcup
4040
allow-failure: false
41-
- compiler: ghc-9.4.7
41+
- compiler: ghc-9.4.8
4242
compilerKind: ghc
43-
compilerVersion: 9.4.7
43+
compilerVersion: 9.4.8
4444
setup-method: ghcup
4545
allow-failure: false
4646
- compiler: ghc-9.2.8
@@ -121,20 +121,18 @@ jobs:
121121
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
122122
if [ "${{ matrix.setup-method }}" = ghcup ]; then
123123
mkdir -p "$HOME/.ghcup/bin"
124-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
124+
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
125125
chmod a+x "$HOME/.ghcup/bin/ghcup"
126-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
127126
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
128-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
127+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
129128
else
130129
apt-add-repository -y 'ppa:hvr/ghc'
131130
apt-get update
132131
apt-get install -y "$HCNAME"
133132
mkdir -p "$HOME/.ghcup/bin"
134-
curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
133+
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
135134
chmod a+x "$HOME/.ghcup/bin/ghcup"
136-
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
137-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
135+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
138136
fi
139137
env:
140138
HCKIND: ${{ matrix.compilerKind }}
@@ -154,20 +152,20 @@ jobs:
154152
echo "HC=$HC" >> "$GITHUB_ENV"
155153
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
156154
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
157-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
155+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
158156
else
159157
HC=$HCDIR/bin/$HCKIND
160158
echo "HC=$HC" >> "$GITHUB_ENV"
161159
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
162160
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
163-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
161+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
164162
fi
165163
166164
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
167165
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
168166
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
169167
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
170-
if [ $((HCNUMVER >= 90800)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
168+
echo "HEADHACKAGE=false" >> "$GITHUB_ENV"
171169
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
172170
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
173171
env:
@@ -196,18 +194,6 @@ jobs:
196194
repository hackage.haskell.org
197195
url: http://hackage.haskell.org/
198196
EOF
199-
if $HEADHACKAGE; then
200-
cat >> $CABAL_CONFIG <<EOF
201-
repository head.hackage.ghc.haskell.org
202-
url: https://ghc.gitlab.haskell.org/head.hackage/
203-
secure: True
204-
root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
205-
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
206-
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
207-
key-threshold: 3
208-
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
209-
EOF
210-
fi
211197
cat >> $CABAL_CONFIG <<EOF
212198
program-default-options
213199
ghc-options: $GHCJOBS +RTS -M3G -RTS
@@ -259,9 +245,6 @@ jobs:
259245
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
260246
cat >> cabal.project <<EOF
261247
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
265248
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(StateVar)$/; }' >> cabal.project.local
266249
cat cabal.project
267250
cat cabal.project.local

StateVar.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ tested-with:
2828
GHC == 8.10.7
2929
GHC == 9.0.2
3030
GHC == 9.2.8
31-
GHC == 9.4.7
32-
GHC == 9.6.2
33-
GHC == 9.8.0
31+
GHC == 9.4.8
32+
GHC == 9.6.4
33+
GHC == 9.8.1
3434
cabal-version: >= 1.10
3535
extra-source-files:
3636
README.md

0 commit comments

Comments
 (0)