;ci: github: windows: tweak caching

This commit is contained in:
Simon Michael 2020-03-07 03:14:54 -08:00
parent 5e96ae8224
commit 4abeae5eeb

View File

@ -122,8 +122,8 @@ jobs:
# actions
- name: Add stack local bin to PATH
run: echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin"
# - name: Add stack local bin to PATH
# run: echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin"
- name: Install stack
if: steps.stack-local-bin-dir.outputs.cache-hit != 'true'
@ -134,9 +134,9 @@ jobs:
- name: Install GHC
if: steps.stack-global-db.outputs.cache-hit != 'true'
# echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin"
run: |
echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin"
stack --no-terminal setup --install-ghc
C:\Users\runneradmin\AppData\Roaming\stack\local\bin\stack --no-terminal setup --install-ghc
# - name: Install shelltestrunner
# - if [[ ! -x ~/.local/bin/shelltest ]]; then stack install shelltestrunner-1.9; fi
@ -144,12 +144,12 @@ jobs:
- name: Install haskell deps
if: steps.stack-global-db.outputs.cache-hit != 'true'
# echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin"
run: |
echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin"
stack --no-terminal build --only-dependencies
C:\Users\runneradmin\AppData\Roaming\stack\local\bin\stack --no-terminal build --only-dependencies
- name: Build hledger
run: stack --no-terminal install --ghc-options=-Werror
run: C:\Users\runneradmin\AppData\Roaming\stack\local\bin\stack --no-terminal install --ghc-options=-Werror
# run hledger-lib/hledger functional tests, skipping the ones for addons
#- COLUMNS=80 stack exec -- shelltest --execdir -j16 tests -x /bin -x /addons