8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.16.3
11
+ # version: 0.18.1
12
12
#
13
- # REGENDATA ("0.16.3 ",["github","deepseq.cabal"])
13
+ # REGENDATA ("0.18.1 ",["github","deepseq.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -28,14 +28,29 @@ jobs:
28
28
strategy :
29
29
matrix :
30
30
include :
31
- - compiler : ghc-9.4.3
31
+ - compiler : ghc-9.10.1
32
32
compilerKind : ghc
33
- compilerVersion : 9.4.3
33
+ compilerVersion : 9.10.1
34
34
setup-method : ghcup
35
35
allow-failure : false
36
- - compiler : ghc-9.2.5
36
+ - compiler : ghc-9.8.2
37
37
compilerKind : ghc
38
- compilerVersion : 9.2.5
38
+ compilerVersion : 9.8.2
39
+ setup-method : ghcup
40
+ allow-failure : false
41
+ - compiler : ghc-9.6.5
42
+ compilerKind : ghc
43
+ compilerVersion : 9.6.5
44
+ setup-method : ghcup
45
+ allow-failure : false
46
+ - compiler : ghc-9.4.8
47
+ compilerKind : ghc
48
+ compilerVersion : 9.4.8
49
+ setup-method : ghcup
50
+ allow-failure : false
51
+ - compiler : ghc-9.2.8
52
+ compilerKind : ghc
53
+ compilerVersion : 9.2.8
39
54
setup-method : ghcup
40
55
allow-failure : false
41
56
- compiler : ghc-9.0.2
@@ -51,12 +66,12 @@ jobs:
51
66
- compiler : ghc-8.8.4
52
67
compilerKind : ghc
53
68
compilerVersion : 8.8.4
54
- setup-method : ghcup
69
+ setup-method : hvr-ppa
55
70
allow-failure : false
56
71
- compiler : ghc-8.6.5
57
72
compilerKind : ghc
58
73
compilerVersion : 8.6.5
59
- setup-method : ghcup
74
+ setup-method : hvr-ppa
60
75
allow-failure : false
61
76
fail-fast : false
62
77
steps :
@@ -66,18 +81,18 @@ jobs:
66
81
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
67
82
if [ "${{ matrix.setup-method }}" = ghcup ]; then
68
83
mkdir -p "$HOME/.ghcup/bin"
69
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
84
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0 /x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
70
85
chmod a+x "$HOME/.ghcup/bin/ghcup"
71
86
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
72
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
87
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
73
88
else
74
89
apt-add-repository -y 'ppa:hvr/ghc'
75
90
apt-get update
76
91
apt-get install -y "$HCNAME"
77
92
mkdir -p "$HOME/.ghcup/bin"
78
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
93
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0 /x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
79
94
chmod a+x "$HOME/.ghcup/bin/ghcup"
80
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
95
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
81
96
fi
82
97
env :
83
98
HCKIND : ${{ matrix.compilerKind }}
@@ -91,17 +106,19 @@ jobs:
91
106
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
92
107
HCDIR=/opt/$HCKIND/$HCVER
93
108
if [ "${{ matrix.setup-method }}" = ghcup ]; then
94
- HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
109
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
110
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
111
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
95
112
echo "HC=$HC" >> "$GITHUB_ENV"
96
- echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER " >> "$GITHUB_ENV"
97
- echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER " >> "$GITHUB_ENV"
98
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
113
+ echo "HCPKG=$HCPKG " >> "$GITHUB_ENV"
114
+ echo "HADDOCK=$HADDOCK " >> "$GITHUB_ENV"
115
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
99
116
else
100
117
HC=$HCDIR/bin/$HCKIND
101
118
echo "HC=$HC" >> "$GITHUB_ENV"
102
119
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
103
120
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
104
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
121
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
105
122
fi
106
123
107
124
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -184,8 +201,8 @@ jobs:
184
201
touch cabal.project
185
202
touch cabal.project.local
186
203
echo "packages: ${PKGDIR_deepseq}" >> cabal.project
187
- if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package deepseq" >> cabal.project ; fi
188
- if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
204
+ echo "package deepseq" >> cabal.project
205
+ echo " ghc-options: -Werror=missing-methods" >> cabal.project
189
206
cat >> cabal.project <<EOF
190
207
EOF
191
208
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(deepseq)$/; }' >> cabal.project.local
0 commit comments