8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.13.20210525
11
+ # version: 0.13.20211111
12
12
#
13
- # REGENDATA ("0.13.20210525 ",["github","--config=cabal.haskell-ci","cabal.project"])
13
+ # REGENDATA ("0.13.20211111 ",["github","--config=cabal.haskell-ci","cabal.project"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -24,65 +24,126 @@ jobs:
24
24
linux :
25
25
name : Haskell-CI - Linux - ${{ matrix.compiler }}
26
26
runs-on : ubuntu-18.04
27
+ timeout-minutes :
28
+ 60
27
29
container :
28
- image : buildpack-deps:xenial
30
+ image : buildpack-deps:bionic
29
31
continue-on-error : ${{ matrix.allow-failure }}
30
32
strategy :
31
33
matrix :
32
34
include :
35
+ - compiler : ghc-9.2.1
36
+ compilerKind : ghc
37
+ compilerVersion : 9.2.1
38
+ setup-method : ghcup
39
+ allow-failure : false
33
40
- compiler : ghc-9.0.1
41
+ compilerKind : ghc
42
+ compilerVersion : 9.0.1
43
+ setup-method : hvr-ppa
34
44
allow-failure : false
35
- - compiler : ghc-8.10.4
45
+ - compiler : ghc-8.10.7
46
+ compilerKind : ghc
47
+ compilerVersion : 8.10.7
48
+ setup-method : ghcup
36
49
allow-failure : false
37
50
- compiler : ghc-8.8.4
51
+ compilerKind : ghc
52
+ compilerVersion : 8.8.4
53
+ setup-method : hvr-ppa
38
54
allow-failure : false
39
55
- compiler : ghc-8.6.5
56
+ compilerKind : ghc
57
+ compilerVersion : 8.6.5
58
+ setup-method : hvr-ppa
40
59
allow-failure : false
41
60
- compiler : ghc-8.4.4
61
+ compilerKind : ghc
62
+ compilerVersion : 8.4.4
63
+ setup-method : hvr-ppa
42
64
allow-failure : false
43
65
- compiler : ghc-8.2.2
66
+ compilerKind : ghc
67
+ compilerVersion : 8.2.2
68
+ setup-method : hvr-ppa
44
69
allow-failure : false
45
70
- compiler : ghc-8.0.2
71
+ compilerKind : ghc
72
+ compilerVersion : 8.0.2
73
+ setup-method : hvr-ppa
46
74
allow-failure : false
47
75
- compiler : ghc-7.10.3
76
+ compilerKind : ghc
77
+ compilerVersion : 7.10.3
78
+ setup-method : hvr-ppa
48
79
allow-failure : false
49
80
- compiler : ghc-7.8.4
81
+ compilerKind : ghc
82
+ compilerVersion : 7.8.4
83
+ setup-method : hvr-ppa
50
84
allow-failure : false
51
85
- compiler : ghc-7.6.3
86
+ compilerKind : ghc
87
+ compilerVersion : 7.6.3
88
+ setup-method : hvr-ppa
52
89
allow-failure : false
53
90
fail-fast : false
54
91
steps :
55
92
- name : apt
56
93
run : |
57
94
apt-get update
58
- apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common
59
- apt-add-repository -y 'ppa:hvr/ghc'
60
- apt-get update
61
- apt-get install -y $CC cabal-install-3.4
95
+ apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
96
+ if [ "${{ matrix.setup-method }}" = ghcup ]; then
97
+ mkdir -p "$HOME/.ghcup/bin"
98
+ curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
99
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
100
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
101
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
102
+ else
103
+ apt-add-repository -y 'ppa:hvr/ghc'
104
+ apt-get update
105
+ apt-get install -y "$HCNAME"
106
+ mkdir -p "$HOME/.ghcup/bin"
107
+ curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
108
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
109
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
110
+ fi
62
111
env :
63
- CC : ${{ matrix.compiler }}
112
+ HCKIND : ${{ matrix.compilerKind }}
113
+ HCNAME : ${{ matrix.compiler }}
114
+ HCVER : ${{ matrix.compilerVersion }}
64
115
- name : Set PATH and environment variables
65
116
run : |
66
117
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
67
- echo "LANG=C.UTF-8" >> $GITHUB_ENV
68
- echo "CABAL_DIR=$HOME/.cabal" >> $GITHUB_ENV
69
- echo "CABAL_CONFIG=$HOME/.cabal/config" >> $GITHUB_ENV
70
- HCDIR=$(echo "/opt/$CC" | sed 's/-/\//')
71
- HCNAME=ghc
72
- HC=$HCDIR/bin/$HCNAME
73
- echo "HC=$HC" >> $GITHUB_ENV
74
- echo "HCPKG=$HCDIR/bin/$HCNAME-pkg" >> $GITHUB_ENV
75
- echo "HADDOCK=$HCDIR/bin/haddock" >> $GITHUB_ENV
76
- echo "CABAL=/opt/cabal/3.4/bin/cabal -vnormal+nowrap" >> $GITHUB_ENV
118
+ echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
119
+ echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
120
+ echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
121
+ HCDIR=/opt/$HCKIND/$HCVER
122
+ if [ "${{ matrix.setup-method }}" = ghcup ]; then
123
+ HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
124
+ echo "HC=$HC" >> "$GITHUB_ENV"
125
+ echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
126
+ echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
127
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
128
+ else
129
+ HC=$HCDIR/bin/$HCKIND
130
+ echo "HC=$HC" >> "$GITHUB_ENV"
131
+ echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
132
+ echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
133
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
134
+ fi
135
+
77
136
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
78
- echo "HCNUMVER=$HCNUMVER" >> $GITHUB_ENV
79
- echo "ARG_TESTS=--enable-tests" >> $GITHUB_ENV
80
- if [ $((HCNUMVER >= 70800)) -ne 0 ] ; then echo "ARG_BENCH=--enable-benchmarks" >> $GITHUB_ENV ; else echo "ARG_BENCH=--disable-benchmarks" >> $GITHUB_ENV ; fi
81
- echo "HEADHACKAGE=false" >> $GITHUB_ENV
82
- echo "ARG_COMPILER=--$HCNAME --with-compiler=$HC" >> $GITHUB_ENV
83
- echo "GHCJSARITH=0" >> $GITHUB_ENV
137
+ echo "HCNUMVER=$HCNUMVER" >> " $GITHUB_ENV"
138
+ echo "ARG_TESTS=--enable-tests" >> " $GITHUB_ENV"
139
+ if [ $((HCNUMVER >= 70800 && HCNUMVER < 90200 )) -ne 0 ] ; then echo "ARG_BENCH=--enable-benchmarks" >> " $GITHUB_ENV" ; else echo "ARG_BENCH=--disable-benchmarks" >> " $GITHUB_ENV" ; fi
140
+ echo "HEADHACKAGE=false" >> " $GITHUB_ENV"
141
+ echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> " $GITHUB_ENV"
142
+ echo "GHCJSARITH=0" >> " $GITHUB_ENV"
84
143
env :
85
- CC : ${{ matrix.compiler }}
144
+ HCKIND : ${{ matrix.compilerKind }}
145
+ HCNAME : ${{ matrix.compiler }}
146
+ HCVER : ${{ matrix.compilerVersion }}
86
147
- name : env
87
148
run : |
88
149
env
@@ -105,6 +166,10 @@ jobs:
105
166
repository hackage.haskell.org
106
167
url: http://hackage.haskell.org/
107
168
EOF
169
+ cat >> $CABAL_CONFIG <<EOF
170
+ program-default-options
171
+ ghc-options: $GHCJOBS +RTS -M3G -RTS
172
+ EOF
108
173
cat $CABAL_CONFIG
109
174
- name : versions
110
175
run : |
@@ -144,9 +209,10 @@ jobs:
144
209
- name : generate cabal.project
145
210
run : |
146
211
PKGDIR_containers="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/containers-[0-9.]*')"
147
- echo "PKGDIR_containers=${PKGDIR_containers}" >> $GITHUB_ENV
212
+ echo "PKGDIR_containers=${PKGDIR_containers}" >> " $GITHUB_ENV"
148
213
PKGDIR_containers_tests="$(find "$GITHUB_WORKSPACE/unpacked" -maxdepth 1 -type d -regex '.*/containers-tests-[0-9.]*')"
149
- echo "PKGDIR_containers_tests=${PKGDIR_containers_tests}" >> $GITHUB_ENV
214
+ echo "PKGDIR_containers_tests=${PKGDIR_containers_tests}" >> "$GITHUB_ENV"
215
+ rm -f cabal.project cabal.project.local
150
216
touch cabal.project
151
217
touch cabal.project.local
152
218
echo "packages: ${PKGDIR_containers}" >> cabal.project
@@ -157,7 +223,7 @@ jobs:
157
223
if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
158
224
cat >> cabal.project <<EOF
159
225
EOF
160
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(binary|containers|containers-tests|text)$/; }' >> cabal.project.local
226
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(binary|containers|containers-tests|ghc-heap| text)$/; }' >> cabal.project.local
161
227
cat cabal.project
162
228
cat cabal.project.local
163
229
- name : dump install plan
0 commit comments