8
8
#
9
9
# For more information, see https://github.com/haskell-CI/haskell-ci
10
10
#
11
- # version: 0.14.3
11
+ # version: 0.16
12
12
#
13
- # REGENDATA ("0.14.3 ",["github","cabal.project","--allow-failures",">= 9.2","--distribution","focal"])
13
+ # REGENDATA ("0.16 ",["github","cabal.project","--allow-failures",">= 9.2","--distribution","focal"])
14
14
#
15
15
name : Haskell-CI
16
16
on :
23
23
jobs :
24
24
linux :
25
25
name : Haskell-CI - Linux - ${{ matrix.compiler }}
26
- runs-on : ubuntu-18 .04
26
+ runs-on : ubuntu-20 .04
27
27
timeout-minutes :
28
28
60
29
29
container :
32
32
strategy :
33
33
matrix :
34
34
include :
35
- - compiler : ghc-9.2.2
35
+ - compiler : ghc-9.2.7
36
36
compilerKind : ghc
37
- compilerVersion : 9.2.2
37
+ compilerVersion : 9.2.7
38
38
setup-method : ghcup
39
39
allow-failure : true
40
40
- compiler : ghc-9.0.2
@@ -65,18 +65,18 @@ jobs:
65
65
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5
66
66
if [ "${{ matrix.setup-method }}" = ghcup ]; then
67
67
mkdir -p "$HOME/.ghcup/bin"
68
- curl -sL https://downloads.haskell.org/ghcup/0.1.17.5 /x86_64-linux-ghcup-0.1.17.5 > "$HOME/.ghcup/bin/ghcup"
68
+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
69
69
chmod a+x "$HOME/.ghcup/bin/ghcup"
70
- "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER"
71
- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
70
+ "$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
71
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
72
72
else
73
73
apt-add-repository -y 'ppa:hvr/ghc'
74
74
apt-get update
75
75
apt-get install -y "$HCNAME"
76
76
mkdir -p "$HOME/.ghcup/bin"
77
- curl -sL https://downloads.haskell.org/ghcup/0.1.17.5 /x86_64-linux-ghcup-0.1.17.5 > "$HOME/.ghcup/bin/ghcup"
77
+ curl -sL https://downloads.haskell.org/ghcup/0.1.19.2 /x86_64-linux-ghcup-0.1.19.2 > "$HOME/.ghcup/bin/ghcup"
78
78
chmod a+x "$HOME/.ghcup/bin/ghcup"
79
- "$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0
79
+ "$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
80
80
fi
81
81
env :
82
82
HCKIND : ${{ matrix.compilerKind }}
@@ -94,13 +94,13 @@ jobs:
94
94
echo "HC=$HC" >> "$GITHUB_ENV"
95
95
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
96
96
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
97
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
97
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
98
98
else
99
99
HC=$HCDIR/bin/$HCKIND
100
100
echo "HC=$HC" >> "$GITHUB_ENV"
101
101
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
102
102
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
103
- echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
103
+ echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1 .0 -vnormal+nowrap" >> "$GITHUB_ENV"
104
104
fi
105
105
106
106
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -152,14 +152,14 @@ jobs:
152
152
- name : install cabal-plan
153
153
run : |
154
154
mkdir -p $HOME/.cabal/bin
155
- 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
156
- echo 'de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz' | sha256sum -c -
155
+ 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
156
+ echo 'f62ccb2971567a5f638f2005ad3173dba14693a45154c1508645c52289714cb2 cabal-plan.xz' | sha256sum -c -
157
157
xz -d < cabal-plan.xz > $HOME/.cabal/bin/cabal-plan
158
158
rm -f cabal-plan.xz
159
159
chmod a+x $HOME/.cabal/bin/cabal-plan
160
160
cabal-plan --version
161
161
- name : checkout
162
- uses : actions/checkout@v2
162
+ uses : actions/checkout@v3
163
163
with :
164
164
path : source
165
165
- name : initial cabal.project for sdist
@@ -206,8 +206,8 @@ jobs:
206
206
run : |
207
207
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
208
208
cabal-plan
209
- - name : cache
210
- uses : actions/cache@v2
209
+ - name : restore cache
210
+ uses : actions/cache/restore@v3
211
211
with :
212
212
key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
213
213
path : ~/.cabal/store
@@ -235,7 +235,7 @@ jobs:
235
235
${CABAL} -vnormal check
236
236
- name : haddock
237
237
run : |
238
- $CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
238
+ $CABAL v2-haddock --disable-documentation --haddock-all $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
239
239
- name : unconstrained build
240
240
run : |
241
241
rm -f cabal.project.local
@@ -255,3 +255,9 @@ jobs:
255
255
run : |
256
256
if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' --dependencies-only -j2 all ; fi
257
257
if [ $((HCNUMVER < 81000)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='servant ==0.17.*' all ; fi
258
+ - name : save cache
259
+ uses : actions/cache/save@v3
260
+ if : always()
261
+ with :
262
+ key : ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
263
+ path : ~/.cabal/store
0 commit comments