8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.15.20230313
11
+ # version: 0.17.20231010
12
12
#
13
- # REGENDATA ("0.15.20230313 ",["github","cabal.project"])
13
+ # REGENDATA ("0.17.20231010 ",["github","cabal.project"])
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.6 .1
35
+ - compiler : ghc-9.8 .1
36
36
compilerKind : ghc
37
- compilerVersion : 9.6 .1
37
+ compilerVersion : 9.8 .1
38
38
setup-method : ghcup
39
39
allow-failure : false
40
- - compiler : ghc-9.4.4
40
+ - compiler : ghc-9.6.3
41
41
compilerKind : ghc
42
- compilerVersion : 9.4.4
42
+ compilerVersion : 9.6.3
43
43
setup-method : ghcup
44
44
allow-failure : false
45
- - compiler : ghc-9.2 .7
45
+ - compiler : ghc-9.4 .7
46
46
compilerKind : ghc
47
- compilerVersion : 9.2.7
47
+ compilerVersion : 9.4.7
48
+ setup-method : ghcup
49
+ allow-failure : false
50
+ - compiler : ghc-9.2.8
51
+ compilerKind : ghc
52
+ compilerVersion : 9.2.8
48
53
setup-method : ghcup
49
54
allow-failure : false
50
55
- compiler : ghc-9.0.2
75
80
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
76
81
if [ "${{ matrix.setup-method }}" = ghcup ]; then
77
82
mkdir -p "$HOME/.ghcup/bin"
78
- curl -sL https://downloads.haskell.org/ghcup/0.1.18.0 /x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
83
+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
79
84
chmod a+x "$HOME/.ghcup/bin/ghcup"
80
85
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
81
86
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
84
89
apt-get update
85
90
apt-get install -y "$HCNAME"
86
91
mkdir -p "$HOME/.ghcup/bin"
87
- curl -sL https://downloads.haskell.org/ghcup/0.1.18.0 /x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
92
+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.5 /x86_64-linux-ghcup-0.1.19.5 > "$HOME/.ghcup/bin/ghcup"
88
93
chmod a+x "$HOME/.ghcup/bin/ghcup"
89
94
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
90
95
fi
@@ -100,10 +105,12 @@ jobs:
100
105
echo "CABAL_CONFIG=$HOME/.cabal/config" >> "$GITHUB_ENV"
101
106
HCDIR=/opt/$HCKIND/$HCVER
102
107
if [ "${{ matrix.setup-method }}" = ghcup ]; then
103
- HC=$HOME/.ghcup/bin/$HCKIND-$HCVER
108
+ HC=$("$HOME/.ghcup/bin/ghcup" whereis ghc "$HCVER")
109
+ HCPKG=$(echo "$HC" | sed 's#ghc$#ghc-pkg#')
110
+ HADDOCK=$(echo "$HC" | sed 's#ghc$#haddock#')
104
111
echo "HC=$HC" >> "$GITHUB_ENV"
105
- echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER " >> "$GITHUB_ENV"
106
- echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER " >> "$GITHUB_ENV"
112
+ echo "HCPKG=$HCPKG " >> "$GITHUB_ENV"
113
+ echo "HADDOCK=$HADDOCK " >> "$GITHUB_ENV"
107
114
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
108
115
else
109
116
HC=$HCDIR/bin/$HCKIND
@@ -162,17 +169,17 @@ jobs:
162
169
- name : install cabal-plan
163
170
run : |
164
171
mkdir -p $HOME/.cabal/bin
165
- curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.6.2 .0/cabal-plan-0.6.2 .0-x86_64-linux.xz > cabal-plan.xz
166
- echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
172
+ curl -sL https://github.com/haskell-hvr/cabal-plan/releases/download/v0.7.3 .0/cabal-plan-0.7.3 .0-x86_64-linux.xz > cabal-plan.xz
173
+ echo 'f62ccb2971567a5f638f2005ad3173dba14693a45154c1508645c52289714cb2 cabal-plan.xz' | sha256sum -c -
167
174
xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
168
175
rm -f cabal-plan.xz
169
176
chmod a+x $HOME/.cabal/bin/cabal-plan
170
177
cabal-plan --version
171
178
- name : install cabal-docspec
172
179
run : |
173
180
mkdir -p $HOME/.cabal/bin
174
- curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20211114 /cabal-docspec-0.0.0.20211114 .xz > cabal-docspec.xz
175
- echo 'e224700d9e8c9ec7ec6bc3f542ba433cd9925a5d356676c62a9bd1f2c8be8f8a cabal-docspec.xz' | sha256sum -c -
181
+ curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20230517 /cabal-docspec-0.0.0.20230517-x86_64-linux .xz > cabal-docspec.xz
182
+ echo '3b31bbe463ad4d671abbc103db49628562ec48a6604cab278207b5b6acd21ed7 cabal-docspec.xz' | sha256sum -c -
176
183
xz -d < cabal-docspec.xz > $HOME/.cabal/bin/cabal-docspec
177
184
rm -f cabal-docspec.xz
178
185
chmod a+x $HOME/.cabal/bin/cabal-docspec
@@ -252,10 +259,14 @@ jobs:
252
259
rm -f cabal.project.local
253
260
- name : constraint set unsafe
254
261
run : |
262
+ $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='some +newtype-unsafe' all --dry-run
263
+ cabal-plan topo | sort
255
264
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='some +newtype-unsafe' --dependencies-only -j2 all
256
265
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='some +newtype-unsafe' all
257
266
- name : constraint set safe
258
267
run : |
268
+ $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='some -newtype-unsafe' all --dry-run
269
+ cabal-plan topo | sort
259
270
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='some -newtype-unsafe' --dependencies-only -j2 all
260
271
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='some -newtype-unsafe' all
261
272
- name : save cache
0 commit comments