Skip to content

Commit

Permalink
build CI with cabal v2-build
Browse files Browse the repository at this point in the history
  • Loading branch information
lyokha committed Jul 28, 2023
1 parent 13365fb commit 0f4a186
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,7 @@ jobs:
cabal --version
echo "$(ghc --version) "`
`"[$(ghc --print-project-git-commit-id 2>/dev/null || echo '?')]"
if echo "$CABALVER" | grep -q '^3\.[0-5]\.'
then
cabal v1-update
else
cabal v2-update
fi
cabal v1-install --only-dependencies
cabal v1-configure
cabal v1-build
cabal v2-sdist --builddir=dist
SRC_TGZ=$(cabal info . | awk '{print $2; exit}').tar.gz &&
(cd dist/sdist && cabal v1-install --force-reinstalls "$SRC_TGZ")
cabal update
cabal build
set +e
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2460,6 +2460,7 @@ See details in [test/Aggregate/README.md](test/Aggregate/README.md),
[test/EDE/README.md](test/EDE/README.md),
[test/PCRE/README.md](test/PCRE/README.md),
[test/Prometheus/README.md](test/Prometheus/README.md),
[test/Resolve/README.md](test/Resolve/README.md),
[test/ServiceHookAdaptor/README.md](test/ServiceHookAdaptor/README.md), and
[test/Subrequest/README.md](test/Subrequest/README.md).

0 comments on commit 0f4a186

Please sign in to comment.