mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
;ci: github: windows: tweak caching
This commit is contained in:
parent
7db7e69a1e
commit
bcb9c05594
21
.github/workflows/windows-nightly.yml
vendored
21
.github/workflows/windows-nightly.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user