;ci: windows, mac, linux-x64-stack: list dep versions before building hledger

For troubleshooting. stack doesn't do this itself, unlike cabal.
This commit is contained in:
Simon Michael 2024-09-30 15:41:41 -10:00
parent f4bc6308ae
commit 167303deb6
4 changed files with 15 additions and 1 deletions

View File

@ -106,6 +106,10 @@ jobs:
run: |
stack --allow-different-user setup --install-ghc
- name: List dep versions
run: |
$stack exec -- ghc-pkg list
- name: Build with stack and run unit tests
run: |
stack --allow-different-user build --test --ghc-options='-optl-static -fPIC' --ghc-options=-Werror hledger # || (echo "ERROR: building hledger failed"; false)

View File

@ -122,6 +122,10 @@ jobs:
$stack build --test --only-dependencies --dry-run
$stack build --test --only-dependencies
- name: List dep versions
run: |
$stack exec -- ghc-pkg list
- name: Build hledger and test unit tests, doc tests
run: |
$stack install --test --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror

View File

@ -118,6 +118,10 @@ jobs:
$stack build --test --only-dependencies --dry-run
$stack build --test --only-dependencies
- name: List dep versions
run: |
$stack exec -- ghc-pkg list
- name: Build hledger and test unit tests, doc tests
run: |
$stack install --test --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror

View File

@ -123,7 +123,9 @@ jobs:
./stack --no-terminal build --test --only-dependencies --dry-run
./stack --no-terminal build --test --only-dependencies
# use whichever GHC is in default stack.yaml
- name: List dep versions
run: |
$stack exec -- ghc-pkg list
- name: Build all hledger modules warning free, optimised and minimised
run: |