8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.16.3
11
+ # version: 0.17.20231203
12
12
#
13
- # REGENDATA ("0.16.3 ",["github","palette.cabal"])
13
+ # REGENDATA ("0.17.20231203 ",["github","palette.cabal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
@@ -28,19 +28,24 @@ jobs:
28
28
strategy :
29
29
matrix :
30
30
include :
31
- - compiler : ghc-9.6 .1
31
+ - compiler : ghc-9.8 .1
32
32
compilerKind : ghc
33
- compilerVersion : 9.6 .1
33
+ compilerVersion : 9.8 .1
34
34
setup-method : ghcup
35
35
allow-failure : false
36
- - compiler : ghc-9.4.5
36
+ - compiler : ghc-9.6.3
37
37
compilerKind : ghc
38
- compilerVersion : 9.4.5
38
+ compilerVersion : 9.6.3
39
39
setup-method : ghcup
40
40
allow-failure : false
41
- - compiler : ghc-9.2.7
41
+ - compiler : ghc-9.4.8
42
42
compilerKind : ghc
43
- compilerVersion : 9.2.7
43
+ compilerVersion : 9.4.8
44
+ setup-method : ghcup
45
+ allow-failure : false
46
+ - compiler : ghc-9.2.8
47
+ compilerKind : ghc
48
+ compilerVersion : 9.2.8
44
49
setup-method : ghcup
45
50
allow-failure : false
46
51
- compiler : ghc-9.0.2
@@ -86,18 +91,18 @@ jobs:
86
91
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
87
92
if [ "${{ matrix.setup-method }}" = ghcup ]; then
88
93
mkdir -p "$HOME/.ghcup/bin"
89
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
94
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0 /x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
90
95
chmod a+x "$HOME/.ghcup/bin/ghcup"
91
96
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
92
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
97
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
93
98
else
94
99
apt-add-repository -y 'ppa:hvr/ghc'
95
100
apt-get update
96
101
apt-get install -y "$HCNAME"
97
102
mkdir -p "$HOME/.ghcup/bin"
98
- curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
103
+ curl -sL https://downloads.haskell.org/ghcup/0.1.20.0 /x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
99
104
chmod a+x "$HOME/.ghcup/bin/ghcup"
100
- "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
105
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.2 .0 || (cat "$HOME"/.ghcup/logs/*.* && false)
101
106
fi
102
107
env :
103
108
HCKIND : ${{ matrix.compilerKind }}
@@ -111,17 +116,19 @@ jobs:
111
116
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
112
117
HCDIR=/opt/$HCKIND/$HCVER
113
118
if [ "${{ matrix.setup-method }}" = ghcup ]; then
114
- HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
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#')
115
122
echo "HC=$HC" >> "$GITHUB_ENV"
116
- echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER " >> "$GITHUB_ENV"
117
- echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER " >> "$GITHUB_ENV"
118
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$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"
119
126
else
120
127
HC=$HCDIR/bin/$HCKIND
121
128
echo "HC=$HC" >> "$GITHUB_ENV"
122
129
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
123
130
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
124
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
131
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
125
132
fi
126
133
127
134
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
0 commit comments