Skip to content

Commit 31427c2

Browse files
committed
Haskell-CI: use preinstalled packages
1 parent 8f6b383 commit 31427c2

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.github/workflows/haskell-ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#
99
# For more information, see https://github.com/andreasabel/haskell-ci
1010
#
11-
# version: 0.18.0.20240225
11+
# version: 0.18.1.20240316
1212
#
13-
# REGENDATA ("0.18.0.20240225",["github","cabal.project"])
13+
# REGENDATA ("0.18.1.20240316",["github","cabal.project"])
1414
#
1515
name: Haskell-CI
1616
on:
@@ -86,8 +86,9 @@ jobs:
8686
mkdir -p "$HOME/.ghcup/bin"
8787
curl -sL https://downloads.haskell.org/ghcup/0.1.20.0/x86_64-linux-ghcup-0.1.20.0 > "$HOME/.ghcup/bin/ghcup"
8888
chmod a+x "$HOME/.ghcup/bin/ghcup"
89+
"$HOME/.ghcup/bin/ghcup" config add-release-channel https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-prereleases-0.0.8.yaml;
8990
"$HOME/.ghcup/bin/ghcup" install ghc "$HCVER" || (cat "$HOME"/.ghcup/logs/*.* && false)
90-
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
91+
"$HOME/.ghcup/bin/ghcup" install cabal 3.10.2.1 || (cat "$HOME"/.ghcup/logs/*.* && false)
9192
env:
9293
HCKIND: ${{ matrix.compilerKind }}
9394
HCNAME: ${{ matrix.compiler }}
@@ -105,7 +106,7 @@ jobs:
105106
echo "HC=$HC" >> "$GITHUB_ENV"
106107
echo "HCPKG=$HCPKG" >> "$GITHUB_ENV"
107108
echo "HADDOCK=$HADDOCK" >> "$GITHUB_ENV"
108-
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.0 -vnormal+nowrap" >> "$GITHUB_ENV"
109+
echo "CABAL=$HOME/.ghcup/bin/cabal-3.10.2.1 -vnormal+nowrap" >> "$GITHUB_ENV"
109110
HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\d+)\.(\d+)\.(\d+)(\.(\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')
110111
echo "HCNUMVER=$HCNUMVER" >> "$GITHUB_ENV"
111112
echo "ARG_TESTS=--enable-tests" >> "$GITHUB_ENV"
@@ -290,11 +291,11 @@ jobs:
290291
rm -f cabal.project.local
291292
- name: constraint set containers-0.7
292293
run: |
293-
if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all --dry-run ; fi
294-
if [ $((HCNUMVER < 90800)) -ne 0 ] ; then cabal-plan topo | sort ; fi
295-
if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' --dependencies-only -j2 all ; fi
296-
if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all ; fi
297-
if [ $((HCNUMVER < 90800)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all ; fi
294+
$CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all --dry-run
295+
cabal-plan topo | sort
296+
$CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' --dependencies-only -j2 all
297+
$CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all
298+
$CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='containers >= 0.7' all
298299
- name: constraint set no-lukko
299300
run: |
300301
$CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --constraint='hackage-security -lukko' all --dry-run

cabal.haskell-ci

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
branches: master
2+
installed: +all
23

34
-- Andreas, 2023-07-01: We use some haddock features that are new in 8.6.
45
haddock: >= 8.6
56

67
-- -- Andreas, 2023-02-20: see https://github.com/haskell/hackage-security/pull/291
78
-- -- unconstrained build with head.hackage produces failing build plans
8-
-- unconstrained: < 9.6
9+
-- unconstrained: < 9.10
910
--
1011
-- Andreas, 2023-07-01
1112
-- Ryan GI Scott suggests this instead:
@@ -15,11 +16,12 @@ raw-project
1516
base-compat >= 0.12.2
1617

1718
constraint-set no-lukko
18-
ghc: >=8.4
1919
constraints: hackage-security -lukko
2020

2121
constraint-set containers-0.7
22-
ghc: >= 8.4 && < 9.8
22+
-- Andreas, 2024-03-19: possibly we will have to turn off the constraint set
23+
-- for the head.hackage build with GHC 9.10.0
24+
-- ghc: < 9.10
2325
constraints: containers >= 0.7
2426
tests: True
2527
run-tests: True

0 commit comments

Comments
 (0)