;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:
parent
f4bc6308ae
commit
167303deb6
@ -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)
|
||||
|
||||
4
.github/workflows/binaries-mac-arm64.yml
vendored
4
.github/workflows/binaries-mac-arm64.yml
vendored
@ -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
|
||||
|
||||
4
.github/workflows/binaries-mac-x64.yml
vendored
4
.github/workflows/binaries-mac-x64.yml
vendored
@ -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
|
||||
|
||||
4
.github/workflows/binaries-windows-x64.yml
vendored
4
.github/workflows/binaries-windows-x64.yml
vendored
@ -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: |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user