mirror of
https://github.com/Lysxia/first-class-families.git
synced 2024-08-16 23:21:53 +03:00
ci: Run cabal-docspec
This commit is contained in:
parent
1b4e1f559b
commit
6a160ebb54
13
.github/workflows/haskell-ci.yml
vendored
13
.github/workflows/haskell-ci.yml
vendored
@ -190,6 +190,15 @@ jobs:
|
|||||||
rm -f cabal-plan.xz
|
rm -f cabal-plan.xz
|
||||||
chmod a+x $HOME/.cabal/bin/cabal-plan
|
chmod a+x $HOME/.cabal/bin/cabal-plan
|
||||||
cabal-plan --version
|
cabal-plan --version
|
||||||
|
- name: install cabal-docspec
|
||||||
|
run: |
|
||||||
|
mkdir -p $HOME/.cabal/bin
|
||||||
|
curl -sL https://github.com/phadej/cabal-extras/releases/download/cabal-docspec-0.0.0.20231219/cabal-docspec-0.0.0.20231219-x86_64-linux.xz > cabal-docspec.xz
|
||||||
|
echo '8b60448275466bbe2b9409741b5dd07a41c541283017b95b44efe6e31379d067 cabal-docspec.xz' | sha256sum -c -
|
||||||
|
xz -d < cabal-docspec.xz > $HOME/.cabal/bin/cabal-docspec
|
||||||
|
rm -f cabal-docspec.xz
|
||||||
|
chmod a+x $HOME/.cabal/bin/cabal-docspec
|
||||||
|
cabal-docspec --version
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@ -248,6 +257,10 @@ jobs:
|
|||||||
- name: tests
|
- name: tests
|
||||||
run: |
|
run: |
|
||||||
$CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct
|
$CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct
|
||||||
|
- name: docspec
|
||||||
|
run: |
|
||||||
|
if [ $((HCNUMVER >= 90600)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all ; fi
|
||||||
|
if [ $((HCNUMVER >= 90600)) -ne 0 ] ; then cabal-docspec $ARG_COMPILER ; fi
|
||||||
- name: cabal check
|
- name: cabal check
|
||||||
run: |
|
run: |
|
||||||
cd ${PKGDIR_first_class_families} || false
|
cd ${PKGDIR_first_class_families} || false
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
docspec: >= 9.6
|
||||||
distribution: focal
|
distribution: focal
|
||||||
ghcup-jobs: True
|
ghcup-jobs: True
|
||||||
|
Loading…
Reference in New Issue
Block a user