mirror of
https://github.com/simonmichael/hledger.git
synced 2025-01-05 18:13:12 +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') }}
|
key: ${{ runner.os }}-appdata-roaming-stack-${{ hashFiles('**.yaml') }}
|
||||||
restore-keys: ${{ runner.os }}-appdata-roaming-stack
|
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
|
id: stack-programs-dir
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
@ -65,11 +70,10 @@ jobs:
|
|||||||
key: ${{ runner.os }}-appdata-local-programs-stack-${{ hashFiles('**.yaml') }}
|
key: ${{ runner.os }}-appdata-local-programs-stack-${{ hashFiles('**.yaml') }}
|
||||||
restore-keys: ${{ runner.os }}-appdata-local-programs-stack
|
restore-keys: ${{ runner.os }}-appdata-local-programs-stack
|
||||||
|
|
||||||
- name: showStuff
|
# - name: showStuff
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: |
|
# run: |
|
||||||
#ls -lFRa /c/users/runneradmin/appdata/roaming/stack
|
# ls -lFRa /c/users/runneradmin/appdata/local/programs/stack
|
||||||
ls -lFRa /c/users/runneradmin/appdata/local/programs/stack
|
|
||||||
|
|
||||||
# stack's local package dbs for the project and each package
|
# stack's local package dbs for the project and each package
|
||||||
- name: Cache .stack-work
|
- name: Cache .stack-work
|
||||||
@ -121,7 +125,7 @@ jobs:
|
|||||||
stack --version
|
stack --version
|
||||||
|
|
||||||
- name: Install GHC
|
- 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%
|
# set PATH=C:\Users\runneradmin\AppData\Local\Programs\stack\local\bin;%PATH%
|
||||||
run: |
|
run: |
|
||||||
stack --no-terminal setup --install-ghc
|
stack --no-terminal setup --install-ghc
|
||||||
@ -131,11 +135,10 @@ jobs:
|
|||||||
# - shelltest --version
|
# - shelltest --version
|
||||||
|
|
||||||
- name: Install haskell deps
|
- name: Install haskell deps
|
||||||
if: steps.stack-global-package-db.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
run: |
|
||||||
stack --no-terminal build --only-dependencies
|
stack --no-terminal build --only-dependencies
|
||||||
|
|
||||||
- name: Build hledger
|
- name: Build hledger executables
|
||||||
run: |
|
run: |
|
||||||
stack --no-terminal install --ghc-options=-Werror
|
stack --no-terminal install --ghc-options=-Werror
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user