8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.19.20240316
11
+ # version: 0.19.20240501
12
12
#
13
- # REGENDATA ("0.19.20240316 ",["github","cabal.project"])
13
+ # REGENDATA ("0.19.20240501 ",["github","cabal.project"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
30
30
timeout-minutes :
31
31
60
32
32
container :
33
- image : buildpack-deps:bionic
33
+ image : buildpack-deps:jammy
34
34
continue-on-error : ${{ matrix.allow-failure }}
35
35
strategy :
36
36
matrix :
41
41
setup-method : ghcup
42
42
allow-failure : false
43
43
upload : true
44
- - compiler : ghc-9.6.4
44
+ - compiler : ghc-9.6.5
45
45
compilerKind : ghc
46
- compilerVersion : 9.6.4
46
+ compilerVersion : 9.6.5
47
47
setup-method : ghcup
48
48
allow-failure : false
49
49
- compiler : ghc-9.4.8
@@ -69,58 +69,42 @@ jobs:
69
69
- compiler : ghc-8.8.4
70
70
compilerKind : ghc
71
71
compilerVersion : 8.8.4
72
- setup-method : hvr-ppa
72
+ setup-method : ghcup
73
73
allow-failure : false
74
74
- compiler : ghc-8.6.5
75
75
compilerKind : ghc
76
76
compilerVersion : 8.6.5
77
- setup-method : hvr-ppa
77
+ setup-method : ghcup
78
78
allow-failure : false
79
79
- compiler : ghc-8.4.4
80
80
compilerKind : ghc
81
81
compilerVersion : 8.4.4
82
- setup-method : hvr-ppa
82
+ setup-method : ghcup
83
83
allow-failure : false
84
84
- compiler : ghc-8.2.2
85
85
compilerKind : ghc
86
86
compilerVersion : 8.2.2
87
- setup-method : hvr-ppa
87
+ setup-method : ghcup
88
88
allow-failure : false
89
89
- compiler : ghc-8.0.2
90
90
compilerKind : ghc
91
91
compilerVersion : 8.0.2
92
- setup-method : hvr-ppa
93
- allow-failure : false
94
- - compiler : ghc-7.10.3
95
- compilerKind : ghc
96
- compilerVersion : 7.10.3
97
- setup-method : hvr-ppa
92
+ setup-method : ghcup
98
93
allow-failure : false
99
94
fail-fast : false
100
95
steps :
101
96
- name : apt
102
97
run : |
103
98
apt-get update
104
- apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
105
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
106
- mkdir -p "$HOME/.ghcup/bin"
107
- curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
108
- chmod a+x "$HOME/.ghcup/bin/ghcup"
109
- "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
110
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
111
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
112
- apt-get update
113
- apt-get install -y libx11-dev libxext-dev libxinerama-dev libxrandr-dev libxss-dev
114
- else
115
- apt-add-repository -y 'ppa:hvr/ghc'
116
- apt-get update
117
- apt-get install -y "$HCNAME" libx11-dev libxext-dev libxinerama-dev libxrandr-dev libxss-dev
118
- mkdir -p "$HOME/.ghcup/bin"
119
- curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
120
- chmod a+x "$HOME/.ghcup/bin/ghcup"
121
- "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
122
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
123
- fi
99
+ apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
100
+ mkdir -p "$HOME/.ghcup/bin"
101
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
102
+ chmod a+x "$HOME/.ghcup/bin/ghcup"
103
+ "$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
104
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
105
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
106
+ apt-get update
107
+ apt-get install -y libx11-dev libxext-dev libxinerama-dev libxrandr-dev libxss-dev
124
108
env :
125
109
HCKIND : ${{ matrix.compilerKind }}
126
110
HCNAME : ${{ matrix.compiler }}
@@ -132,22 +116,13 @@ jobs:
132
116
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
133
117
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
134
118
HCDIR=/opt/$HCKIND/$HCVER
135
- if [ "${{ matrix.setup-method }}" = ghcup ]; then
136
- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
137
- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
138
- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
139
- echo "HC=$HC" >> "$GITHUB_ENV"
140
- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
141
- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
142
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
143
- else
144
- HC=$HCDIR/bin/$HCKIND
145
- echo "HC=$HC" >> "$GITHUB_ENV"
146
- echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
147
- echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
148
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
149
- fi
150
-
119
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
120
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
121
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
122
+ echo "HC=$HC" >> "$GITHUB_ENV"
123
+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
124
+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
125
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
151
126
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
152
127
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
153
128
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -204,7 +179,7 @@ jobs:
204
179
chmod a+x $HOME/.cabal/bin/cabal-plan
205
180
cabal-plan --version
206
181
- name : checkout
207
- uses : actions/checkout@v3
182
+ uses : actions/checkout@v4
208
183
with :
209
184
path : source
210
185
- name : autoreconf
@@ -245,7 +220,7 @@ jobs:
245
220
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
246
221
cabal-plan
247
222
- name : restore cache
248
- uses : actions/cache/restore@v3
223
+ uses : actions/cache/restore@v4
249
224
with :
250
225
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
251
226
path : ~/.cabal/store
@@ -276,7 +251,7 @@ jobs:
276
251
rm -f cabal.project.local
277
252
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
278
253
- name : save cache
279
- uses : actions/cache/save@v3
254
+ uses : actions/cache/save@v4
280
255
if : always()
281
256
with :
282
257
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
0 commit comments