8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.17.20231010
11
+ # version: 0.19.20240514
12
12
#
13
- # REGENDATA ("0.17.20231010 ",["github","--no-cabal-check","agda-stdlib-utils.cabal"])
13
+ # REGENDATA ("0.19.20240514 ",["github","--no-cabal-check","agda-stdlib-utils.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -40,24 +40,29 @@ jobs:
40
40
timeout-minutes :
41
41
60
42
42
container :
43
- image : buildpack-deps:bionic
43
+ image : buildpack-deps:jammy
44
44
continue-on-error : ${{ matrix.allow-failure }}
45
45
strategy :
46
46
matrix :
47
47
include :
48
- - compiler : ghc-9.8 .1
48
+ - compiler : ghc-9.10 .1
49
49
compilerKind : ghc
50
- compilerVersion : 9.8 .1
50
+ compilerVersion : 9.10 .1
51
51
setup-method : ghcup
52
52
allow-failure : false
53
- - compiler : ghc-9.6.3
53
+ - compiler : ghc-9.8.2
54
54
compilerKind : ghc
55
- compilerVersion : 9.6.3
55
+ compilerVersion : 9.8.2
56
56
setup-method : ghcup
57
57
allow-failure : false
58
- - compiler : ghc-9.4.7
58
+ - compiler : ghc-9.6.5
59
59
compilerKind : ghc
60
- compilerVersion : 9.4.7
60
+ compilerVersion : 9.6.5
61
+ setup-method : ghcup
62
+ allow-failure : false
63
+ - compiler : ghc-9.4.8
64
+ compilerKind : ghc
65
+ compilerVersion : 9.4.8
61
66
setup-method : ghcup
62
67
allow-failure : false
63
68
- compiler : ghc-9.2.8
@@ -78,34 +83,24 @@ jobs:
78
83
- compiler : ghc-8.8.4
79
84
compilerKind : ghc
80
85
compilerVersion : 8.8.4
81
- setup-method : hvr-ppa
86
+ setup-method : ghcup
82
87
allow-failure : false
83
88
- compiler : ghc-8.6.5
84
89
compilerKind : ghc
85
90
compilerVersion : 8.6.5
86
- setup-method : hvr-ppa
91
+ setup-method : ghcup
87
92
allow-failure : false
88
93
fail-fast : false
89
94
steps :
90
95
- name : apt
91
96
run : |
92
97
apt-get update
93
98
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
94
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
95
- mkdir -p "$HOME/.ghcup/bin"
96
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
97
- chmod a+x "$HOME/.ghcup/bin/ghcup"
98
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
99
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
100
- else
101
- apt-add-repository -y 'ppa:hvr/ghc'
102
- apt-get update
103
- apt-get install -y "$HCNAME"
104
- mkdir -p "$HOME/.ghcup/bin"
105
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.5/x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
106
- chmod a+x "$HOME/.ghcup/bin/ghcup"
107
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
108
- fi
99
+ mkdir -p "$HOME/.ghcup/bin"
100
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
101
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
102
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
103
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
109
104
env :
110
105
HCKIND : ${{ matrix.compilerKind }}
111
106
HCNAME : ${{ matrix.compiler }}
@@ -117,22 +112,13 @@ jobs:
117
112
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
118
113
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
119
114
HCDIR=/opt/$HCKIND/$HCVER
120
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
121
- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
122
- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
123
- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
124
- echo "HC=$HC" >> "$GITHUB_ENV"
125
- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
126
- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
127
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.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.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
134
- fi
135
-
115
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
116
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
117
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
118
+ echo "HC=$HC" >> "$GITHUB_ENV"
119
+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
120
+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
121
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
136
122
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
137
123
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
138
124
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -189,7 +175,7 @@ jobs:
189
175
chmod a+x $HOME/.cabal/bin/cabal-plan
190
176
cabal-plan --version
191
177
- name : checkout
192
- uses : actions/checkout@v3
178
+ uses : actions/checkout@v4
193
179
with :
194
180
path : source
195
181
- name : initial cabal.project for sdist
@@ -217,15 +203,15 @@ jobs:
217
203
echo " ghc-options: -Werror=missing-methods" >> cabal.project
218
204
cat >> cabal.project <<EOF
219
205
EOF
220
- $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(agda-stdlib-utils)$/; }' >> cabal.project.local
206
+ $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: any. $_ installed\n" unless /^(agda-stdlib-utils)$/; }' >> cabal.project.local
221
207
cat cabal.project
222
208
cat cabal.project.local
223
209
- name : dump install plan
224
210
run : |
225
211
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
226
212
cabal-plan
227
213
- name : restore cache
228
- uses : actions/cache/restore@v3
214
+ uses : actions/cache/restore@v4
229
215
with :
230
216
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
231
217
path : ~/.cabal/store
@@ -248,7 +234,7 @@ jobs:
248
234
rm -f cabal.project.local
249
235
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
250
236
- name : save cache
251
- uses : actions/cache/save@v3
237
+ uses : actions/cache/save@v4
252
238
if : always()
253
239
with :
254
240
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments