8
8
#
9
9
# For more information, see https://github.com/andreasabel/haskell-ci
10
10
#
11
- # version: 0.19.20241021
11
+ # version: 0.19.20241219
12
12
#
13
- # REGENDATA ("0.19.20241021 ",["github","parallel.cabal"])
13
+ # REGENDATA ("0.19.20241219 ",["github","parallel.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -32,19 +32,19 @@ jobs:
32
32
strategy :
33
33
matrix :
34
34
include :
35
- - compiler : ghc-9.12.20241014
35
+ - compiler : ghc-9.12.1
36
36
compilerKind : ghc
37
- compilerVersion : 9.12.20241014
37
+ compilerVersion : 9.12.1
38
38
setup-method : ghcup
39
39
allow-failure : false
40
40
- compiler : ghc-9.10.1
41
41
compilerKind : ghc
42
42
compilerVersion : 9.10.1
43
43
setup-method : ghcup
44
44
allow-failure : false
45
- - compiler : ghc-9.8.2
45
+ - compiler : ghc-9.8.4
46
46
compilerKind : ghc
47
- compilerVersion : 9.8.2
47
+ compilerVersion : 9.8.4
48
48
setup-method : ghcup
49
49
allow-failure : false
50
50
- compiler : ghc-9.6.6
@@ -99,16 +99,30 @@ jobs:
99
99
allow-failure : false
100
100
fail-fast : false
101
101
steps :
102
- - name : apt
102
+ - name : apt-get install
103
103
run : |
104
104
apt-get update
105
105
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 libnuma-dev
106
+ - name : Install GHCup
107
+ run : |
106
108
mkdir -p "$HOME/.ghcup/bin"
107
109
curl -sL https://downloads.haskell.org/ghcup/0.1.30.0/x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
108
110
chmod a+x "$HOME/.ghcup/bin/ghcup"
111
+ - name : Install cabal-install (prerelease)
112
+ run : |
109
113
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
114
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.15.0.0.2024.10.3 || (cat "$HOME"/.ghcup/logs/*.* && false)
115
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.15.0.0.2024.10.3 -vnormal+nowrap" >> "$GITHUB_ENV"
116
+ - name : Install GHC (GHCup)
117
+ if : matrix.setup-method == 'ghcup'
118
+ run : |
110
119
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
111
- "$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
120
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
121
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
122
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
123
+ echo "HC=$HC" >> "$GITHUB_ENV"
124
+ echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
125
+ echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
112
126
env :
113
127
HCKIND : ${{ matrix.compilerKind }}
114
128
HCNAME : ${{ matrix.compiler }}
@@ -119,21 +133,12 @@ jobs:
119
133
echo "LANG=C.UTF-8" >> "$GITHUB_ENV"
120
134
echo "CABAL_DIR=$HOME/.cabal" >> "$GITHUB_ENV"
121
135
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
122
- HCDIR=/opt/$HCKIND/$HCVER
123
- HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
124
- HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
125
- HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
126
- echo "HC=$HC" >> "$GITHUB_ENV"
127
- echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
128
- echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
129
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
130
136
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
131
137
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
132
138
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
133
139
echo "ARG_BENCH=--enable-benchmarks" >> "$GITHUB_ENV"
134
140
if [ $((HCNUMVER >= 91200)) -ne 0 ] ; then echo "HEADHACKAGE=true" >> "$GITHUB_ENV" ; else echo "HEADHACKAGE=false" >> "$GITHUB_ENV" ; fi
135
141
echo "ARG_COMPILER=--$HCKIND --with-compiler=$HC" >> "$GITHUB_ENV"
136
- echo "GHCJSARITH=0" >> "$GITHUB_ENV"
137
142
env :
138
143
HCKIND : ${{ matrix.compilerKind }}
139
144
HCNAME : ${{ matrix.compiler }}
@@ -261,8 +266,8 @@ jobs:
261
266
rm -f cabal.project.local
262
267
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
263
268
- name : save cache
264
- uses : actions/cache/save@v4
265
269
if : always()
270
+ uses : actions/cache/save@v4
266
271
with :
267
272
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
268
273
path : ~/.cabal/store
0 commit comments