8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.14.3
11
+ # version: 0.15.20230128
12
12
#
13
- # REGENDATA ("0.14.3 ",["github","cabal.project","--config","cabal.haskell-ci"])
13
+ # REGENDATA ("0.15.20230128 ",["github","cabal.project","--config","cabal.haskell-ci"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
23
23
jobs :
24
24
linux :
25
25
name : Haskell-CI - Linux - ${{ matrix.compiler }}
26
- runs-on : ubuntu-18 .04
26
+ runs-on : ubuntu-20 .04
27
27
timeout-minutes :
28
28
60
29
29
container :
@@ -32,15 +32,14 @@ jobs:
32
32
strategy :
33
33
matrix :
34
34
include :
35
- # Added manually - no 9.4 in haskell-ci yet
36
- - compiler : ghc-9.4.3
35
+ - compiler : ghc-9.4.4
37
36
compilerKind : ghc
38
- compilerVersion : 9.4.3
37
+ compilerVersion : 9.4.4
39
38
setup-method : ghcup
40
- allow-failure : true
41
- - compiler : ghc-9.2.2
39
+ allow-failure : false
40
+ - compiler : ghc-9.2.5
42
41
compilerKind : ghc
43
- compilerVersion : 9.2.2
42
+ compilerVersion : 9.2.5
44
43
setup-method : ghcup
45
44
allow-failure : false
46
45
- compiler : ghc-9.0.2
@@ -71,18 +70,20 @@ jobs:
71
70
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
72
71
if [ "${{ matrix.setup-method }}" = ghcup ]; then
73
72
mkdir -p "$HOME/.ghcup/bin"
74
- curl -sL https://downloads.haskell.org/ghcup/0.1.17.5 /x86_64-linux-ghcup-0.1.17.5 > "$HOME/.ghcup/bin/ghcup"
73
+ curl -sL https://downloads.haskell.org/ghcup/0.1.18.0 /x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
75
74
chmod a+x "$HOME/.ghcup/bin/ghcup"
76
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
77
- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
75
+ "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
76
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
77
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
78
78
else
79
79
apt-add-repository -y 'ppa:hvr/ghc'
80
80
apt-get update
81
81
apt-get install -y "$HCNAME"
82
82
mkdir -p "$HOME/.ghcup/bin"
83
- curl -sL https://downloads.haskell.org/ghcup/0.1.17.5 /x86_64-linux-ghcup-0.1.17.5 > "$HOME/.ghcup/bin/ghcup"
83
+ curl -sL https://downloads.haskell.org/ghcup/0.1.18.0 /x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
84
84
chmod a+x "$HOME/.ghcup/bin/ghcup"
85
- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
85
+ "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
86
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
86
87
fi
87
88
env :
88
89
HCKIND : ${{ matrix.compilerKind }}
@@ -165,7 +166,7 @@ jobs:
165
166
chmod a+x $HOME/.cabal/bin/cabal-plan
166
167
cabal-plan --version
167
168
- name : checkout
168
- uses : actions/checkout@v2
169
+ uses : actions/checkout@v3
169
170
with :
170
171
path : source
171
172
- name : initial cabal.project for sdist
@@ -206,8 +207,8 @@ jobs:
206
207
run : |
207
208
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
208
209
cabal-plan
209
- - name : cache
210
- uses : actions/cache@v2
210
+ - name : restore cache
211
+ uses : actions/cache/restore@v3
211
212
with :
212
213
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
213
214
path : ~/.cabal/store
@@ -261,3 +262,9 @@ jobs:
261
262
run : |
262
263
if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' --dependencies-only -j2 all ; fi
263
264
if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' all ; fi
265
+ - name : save cache
266
+ uses : actions/cache/save@v3
267
+ if : always()
268
+ with :
269
+ key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
270
+ path : ~/.cabal/store
0 commit comments