;ci: github: windows: tweak caching

This commit is contained in:
Simon Michael 2020-03-07 03:51:38 -08:00
parent 7db7e69a1e
commit bcb9c05594

View File

@ -55,7 +55,12 @@ jobs:
key: ${{ runner.os }}-appdata-roaming-stack-${{ hashFiles('**.yaml') }}
restore-keys: ${{ runner.os }}-appdata-roaming-stack
- name: Cache stack local programs dir
- name: showStuff
shell: bash
run: |
ls -lFRa /c/users/runneradmin/appdata/roaming/stack
- name: Cache stack programs dir # ghc, ghc-included packages and their haddocks, mingw, msys2
id: stack-programs-dir
uses: actions/cache@v1
with:
@ -65,11 +70,10 @@ jobs:
key: ${{ runner.os }}-appdata-local-programs-stack-${{ hashFiles('**.yaml') }}
restore-keys: ${{ runner.os }}-appdata-local-programs-stack
- name: showStuff
shell: bash
run: |
#ls -lFRa /c/users/runneradmin/appdata/roaming/stack
ls -lFRa /c/users/runneradmin/appdata/local/programs/stack
# - name: showStuff
# shell: bash
# run: |
# ls -lFRa /c/users/runneradmin/appdata/local/programs/stack
# stack's local package dbs for the project and each package
- name: Cache .stack-work
@ -121,7 +125,7 @@ jobs:
stack --version
- name: Install GHC
if: steps.stack-programs-dir.outputs.cache-hit != 'true'
# if: steps.stack-programs-dir.outputs.cache-hit != 'true'
# set PATH=C:\Users\runneradmin\AppData\Local\Programs\stack\local\bin;%PATH%
run: |
stack --no-terminal setup --install-ghc
@ -131,11 +135,10 @@ jobs:
# - shelltest --version
- name: Install haskell deps
if: steps.stack-global-package-db.outputs.cache-hit != 'true'
run: |
stack --no-terminal build --only-dependencies
- name: Build hledger
- name: Build hledger executables
run: |
stack --no-terminal install --ghc-options=-Werror