Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9234161

Browse files
slotTheliskin
authored andcommittedOct 24, 2023
ci: Test against GHC 9.6.1
+ Regenerate haskell-ci and adjust relevant patches. - Remove haskell-ci-dependabot.patch, as it is no longer necessary. Related: xmonad/xmonad-contrib@635711e
1 parent bb1aad4 commit 9234161

File tree

4 files changed

+25
-35
lines changed

4 files changed

+25
-35
lines changed
 

‎.github/workflows/haskell-ci-dependabot.patch

-23
This file was deleted.

‎.github/workflows/haskell-ci-hackage.patch

+6-3
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,19 @@ set in GitHub repository secrets.
4545
- compiler: ghc-8.10.7
4646
compilerKind: ghc
4747
compilerVersion: 8.10.7
48-
@@ -209,8 +217,80 @@
48+
@@ -237,7 +237,7 @@
4949
${CABAL} -vnormal check
5050
- name: haddock
5151
run: |
52-
- $CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
52+
- $CABAL v2-haddock --disable-documentation $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH all
5353
+ $CABAL v2-haddock $ARG_COMPILER --with-haddock $HADDOCK $ARG_TESTS $ARG_BENCH --haddock-for-hackage --builddir $GITHUB_WORKSPACE/haddock all
5454
- name: unconstrained build
5555
run: |
5656
rm -f cabal.project.local
57-
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
57+
@@ -248,3 +248,75 @@
58+
with:
59+
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
60+
path: ~/.cabal/store
5861
+ - name: upload artifacts (sdist)
5962
+ if: matrix.upload
6063
+ uses: actions/upload-artifact@v3

‎.github/workflows/haskell-ci.yml

+19-8
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/haskell-CI/haskell-ci
1010
#
11-
# version: 0.15.202211107
11+
# version: 0.15.20230312
1212
#
13-
# REGENDATA ("0.15.202211107",["github","cabal.project"])
13+
# REGENDATA ("0.15.20230312",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -35,6 +35,11 @@ jobs:
3535
strategy:
3636
matrix:
3737
include:
38+
- compiler: ghc-9.6.1
39+
compilerKind: ghc
40+
compilerVersion: 9.6.1
41+
setup-method: ghcup
42+
allow-failure: false
3843
- compiler: ghc-9.4.3
3944
compilerKind: ghc
4045
compilerVersion: 9.4.3
@@ -97,7 +102,7 @@ jobs:
97102
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
98103
chmod a+x "$HOME/.ghcup/bin/ghcup"
99104
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
100-
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
105+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
101106
apt-get update
102107
apt-get install -y libx11-dev libxext-dev libxinerama-dev libxrandr-dev libxss-dev
103108
else
@@ -107,7 +112,7 @@ jobs:
107112
mkdir -p "$HOME/.ghcup/bin"
108113
curl -sL https://downloads.haskell.org/ghcup/0.1.18.0/x86_64-linux-ghcup-0.1.18.0 > "$HOME/.ghcup/bin/ghcup"
109114
chmod a+x "$HOME/.ghcup/bin/ghcup"
110-
"$HOME/.ghcup/bin/ghcup" install cabal 3.6.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
115+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
111116
fi
112117
env:
113118
HCKIND: ${{ matrix.compilerKind }}
@@ -125,13 +130,13 @@ jobs:
125130
echo "HC=$HC" >> "$GITHUB_ENV"
126131
echo "HCPKG=$HOME/.ghcup/bin/$HCKIND-pkg-$HCVER" >> "$GITHUB_ENV"
127132
echo "HADDOCK=$HOME/.ghcup/bin/haddock-$HCVER" >> "$GITHUB_ENV"
128-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
133+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
129134
else
130135
HC=$HCDIR/bin/$HCKIND
131136
echo "HC=$HC" >> "$GITHUB_ENV"
132137
echo "HCPKG=$HCDIR/bin/$HCKIND-pkg" >> "$GITHUB_ENV"
133138
echo "HADDOCK=$HCDIR/bin/haddock" >> "$GITHUB_ENV"
134-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.6.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
139+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
135140
fi
136141
137142
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
@@ -230,8 +235,8 @@ jobs:
230235
run: |
231236
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH --dry-run all
232237
cabal-plan
233-
- name: cache
234-
uses: actions/cache@v3
238+
- name: restore cache
239+
uses: actions/cache/restore@v3
235240
with:
236241
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
237242
path: ~/.cabal/store
@@ -257,6 +262,12 @@ jobs:
257262
run: |
258263
rm -f cabal.project.local
259264
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks all
265+
- name: save cache
266+
uses: actions/cache/save@v3
267+
if: always()
268+
with:
269+
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ github.sha }}
270+
path: ~/.cabal/store
260271
- name: upload artifacts (sdist)
261272
if: matrix.upload
262273
uses: actions/upload-artifact@v3

‎cabal.haskell-ci

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ apt:
66
libxss-dev
77

88
github-patches:
9-
.github/workflows/haskell-ci-dependabot.patch
109
.github/workflows/haskell-ci-autoreconf.patch
1110
.github/workflows/haskell-ci-hackage.patch
1211

0 commit comments

Comments
 (0)
Please sign in to comment.