8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.13.20210606
11
+ # version: 0.14.1
12
12
#
13
- # REGENDATA ("0.13.20210606 ",["github","alex.cabal"])
13
+ # REGENDATA ("0.14.1 ",["github","alex.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -20,21 +20,28 @@ jobs:
20
20
linux :
21
21
name : Haskell-CI - Linux - ${{ matrix.compiler }}
22
22
runs-on : ubuntu-18.04
23
+ timeout-minutes :
24
+ 60
23
25
container :
24
26
image : buildpack-deps:bionic
25
27
continue-on-error : ${{ matrix.allow-failure }}
26
28
strategy :
27
29
matrix :
28
30
include :
29
- - compiler : ghc-9.0 .1
31
+ - compiler : ghc-9.2 .1
30
32
compilerKind : ghc
31
- compilerVersion : 9.0 .1
32
- setup-method : hvr-ppa
33
+ compilerVersion : 9.2 .1
34
+ setup-method : ghcup
33
35
allow-failure : false
34
- - compiler : ghc-8.10.4
36
+ - compiler : ghc-9.0.2
35
37
compilerKind : ghc
36
- compilerVersion : 8.10.4
37
- setup-method : hvr-ppa
38
+ compilerVersion : 9.0.2
39
+ setup-method : ghcup
40
+ allow-failure : false
41
+ - compiler : ghc-8.10.7
42
+ compilerKind : ghc
43
+ compilerVersion : 8.10.7
44
+ setup-method : ghcup
38
45
allow-failure : false
39
46
- compiler : ghc-8.8.4
40
47
compilerKind : ghc
92
99
run : |
93
100
apt-get update
94
101
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
95
- apt-add-repository -y 'ppa:hvr/ghc'
96
- apt-get update
97
- apt-get install -y "$HCNAME" cabal-install-3.4
102
+ if [ "${{ matrix.setup-method }}" = ghcup ]; then
103
+ mkdir -p "$HOME/.ghcup/bin"
104
+ curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
105
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
106
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
107
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
108
+ else
109
+ apt-add-repository -y 'ppa:hvr/ghc'
110
+ apt-get update
111
+ apt-get install -y "$HCNAME"
112
+ mkdir -p "$HOME/.ghcup/bin"
113
+ curl -sL https://downloads.haskell.org/ghcup/0.1.17.3/x86_64-linux-ghcup-0.1.17.3 > "$HOME/.ghcup/bin/ghcup"
114
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
115
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
116
+ fi
98
117
env :
99
118
HCKIND : ${{ matrix.compilerKind }}
100
119
HCNAME : ${{ matrix.compiler }}
@@ -106,11 +125,20 @@ jobs:
106
125
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
107
126
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
108
127
HCDIR=/opt/$HCKIND/$HCVER
109
- HC=$HCDIR/bin/$HCKIND
110
- echo "HC=$HC" >> "$GITHUB_ENV"
111
- echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
112
- echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
113
- echo "CABAL=/opt/cabal/3.4/bin/cabal -vnormal+nowrap" >> "$GITHUB_ENV"
128
+ if [ "${{ matrix.setup-method }}" = ghcup ]; then
129
+ HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
130
+ echo "HC=$HC" >> "$GITHUB_ENV"
131
+ echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
132
+ echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
133
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
134
+ else
135
+ HC=$HCDIR/bin/$HCKIND
136
+ echo "HC=$HC" >> "$GITHUB_ENV"
137
+ echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
138
+ echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
139
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
140
+ fi
141
+
114
142
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
115
143
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
116
144
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -144,6 +172,10 @@ jobs:
144
172
repository hackage.haskell.org
145
173
url: http://hackage.haskell.org/
146
174
EOF
175
+ cat >> $CABAL_CONFIG <<EOF
176
+ program-default-options
177
+ ghc-options: $GHCJOBS +RTS -M3G -RTS
178
+ EOF
147
179
cat $CABAL_CONFIG
148
180
- name : versions
149
181
run : |
0 commit comments