8
8
#
9
9
# For more information, see https://github.com/andreasabel/haskell-ci
10
10
#
11
- # version: 0.17.20231002
11
+ # version: 0.19.20240403
12
12
#
13
- # REGENDATA ("0.17.20231002 ",["github","HTTP.cabal"])
13
+ # REGENDATA ("0.19.20240403 ",["github","HTTP.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -32,19 +32,24 @@ jobs:
32
32
strategy :
33
33
matrix :
34
34
include :
35
- - compiler : ghc-9.8 .0.20230929
35
+ - compiler : ghc-9.10 .0.20240328
36
36
compilerKind : ghc
37
- compilerVersion : 9.8 .0.20230929
37
+ compilerVersion : 9.10 .0.20240328
38
38
setup-method : ghcup
39
- allow-failure : true
40
- - compiler : ghc-9.6.3
39
+ allow-failure : false
40
+ - compiler : ghc-9.8.2
41
+ compilerKind : ghc
42
+ compilerVersion : 9.8.2
43
+ setup-method : ghcup
44
+ allow-failure : false
45
+ - compiler : ghc-9.6.4
41
46
compilerKind : ghc
42
- compilerVersion : 9.6.3
47
+ compilerVersion : 9.6.4
43
48
setup-method : ghcup
44
49
allow-failure : false
45
- - compiler : ghc-9.4.7
50
+ - compiler : ghc-9.4.8
46
51
compilerKind : ghc
47
- compilerVersion : 9.4.7
52
+ compilerVersion : 9.4.8
48
53
setup-method : ghcup
49
54
allow-failure : false
50
55
- compiler : ghc-9.2.8
@@ -65,56 +70,40 @@ jobs:
65
70
- compiler : ghc-8.8.4
66
71
compilerKind : ghc
67
72
compilerVersion : 8.8.4
68
- setup-method : hvr-ppa
73
+ setup-method : ghcup
69
74
allow-failure : false
70
75
- compiler : ghc-8.6.5
71
76
compilerKind : ghc
72
77
compilerVersion : 8.6.5
73
- setup-method : hvr-ppa
78
+ setup-method : ghcup
74
79
allow-failure : false
75
80
- compiler : ghc-8.4.4
76
81
compilerKind : ghc
77
82
compilerVersion : 8.4.4
78
- setup-method : hvr-ppa
83
+ setup-method : ghcup
79
84
allow-failure : false
80
85
- compiler : ghc-8.2.2
81
86
compilerKind : ghc
82
87
compilerVersion : 8.2.2
83
- setup-method : hvr-ppa
88
+ setup-method : ghcup
84
89
allow-failure : false
85
90
- compiler : ghc-8.0.2
86
91
compilerKind : ghc
87
92
compilerVersion : 8.0.2
88
- setup-method : hvr-ppa
89
- allow-failure : false
90
- - compiler : ghc-7.10.3
91
- compilerKind : ghc
92
- compilerVersion : 7.10.3
93
- setup-method : hvr-ppa
93
+ setup-method : ghcup
94
94
allow-failure : false
95
95
fail-fast : false
96
96
steps :
97
97
- name : apt
98
98
run : |
99
99
apt-get update
100
- apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
101
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
102
- mkdir -p "$HOME/.ghcup/bin"
103
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
104
- chmod a+x "$HOME/.ghcup/bin/ghcup"
105
- "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
106
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
107
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
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.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
114
- chmod a+x "$HOME/.ghcup/bin/ghcup"
115
- "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.7.yaml;
116
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
117
- fi
100
+ apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
101
+ mkdir -p "$HOME/.ghcup/bin"
102
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
103
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
104
+ "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
105
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
106
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.3.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
118
107
env :
119
108
HCKIND : ${{ matrix.compilerKind }}
120
109
HCNAME : ${{ matrix.compiler }}
@@ -126,27 +115,18 @@ jobs:
126
115
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
127
116
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
128
117
HCDIR=/opt/$HCKIND/$HCVER
129
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
130
- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
131
- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
132
- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
133
- echo "HC=$HC" >> "$GITHUB_ENV"
134
- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
135
- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
136
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
137
- else
138
- HC=$HCDIR/bin/$HCKIND
139
- echo "HC=$HC" >> "$GITHUB_ENV"
140
- echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
141
- echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
142
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
143
- fi
144
-
118
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
119
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
120
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
121
+ echo "HC=$HC" >> "$GITHUB_ENV"
122
+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
123
+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
124
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.3.0 -vnormal+nowrap" >> "$GITHUB_ENV"
145
125
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
146
126
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
147
127
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
148
128
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
149
- if [ $((HCNUMVER >= 90800 )) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
129
+ if [ $((HCNUMVER >= 91000 )) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
150
130
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
151
131
echo "GHCJSARITH=0" >> "$GITHUB_ENV"
152
132
env :
@@ -249,7 +229,7 @@ jobs:
249
229
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
250
230
cabal-plan
251
231
- name : restore cache
252
- uses : actions/cache/restore@v3
232
+ uses : actions/cache/restore@v4
253
233
with :
254
234
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
255
235
path : ~/.cabal/store
@@ -279,7 +259,7 @@ jobs:
279
259
rm -f cabal.project.local
280
260
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
281
261
- name : save cache
282
- uses : actions/cache/save@v3
262
+ uses : actions/cache/save@v4
283
263
if : always()
284
264
with :
285
265
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments