;ci: github: windows: tweak caching
This commit is contained in:
parent
7084f833e2
commit
051fab84a2
74
.github/workflows/windows-nightly.yml
vendored
74
.github/workflows/windows-nightly.yml
vendored
@ -45,10 +45,10 @@ jobs:
|
|||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Show stuff
|
# - name: Show stuff
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: |
|
# run: |
|
||||||
ls -lRF /C/Users/runneradmin/AppData/Local
|
# ls -lRF /C/Users/runneradmin/AppData/Local
|
||||||
# # ls C:\Users\runneradmin\
|
# # ls C:\Users\runneradmin\
|
||||||
# # ls C:\Users\runneradmin\AppData\
|
# # ls C:\Users\runneradmin\AppData\
|
||||||
# # ls C:\Users\runneradmin\AppData\Local\
|
# # ls C:\Users\runneradmin\AppData\Local\
|
||||||
@ -58,7 +58,6 @@ jobs:
|
|||||||
# # ls C:\Users\runneradmin\AppData\LocalLow\
|
# # ls C:\Users\runneradmin\AppData\LocalLow\
|
||||||
# # ls C:\Users\runneradmin\AppData\Roaming\
|
# # ls C:\Users\runneradmin\AppData\Roaming\
|
||||||
# # ls C:\Users\runneradmin\AppData\Roaming\stack\
|
# # ls C:\Users\runneradmin\AppData\Roaming\stack\
|
||||||
# run: |
|
|
||||||
# ls C:\Users\runneradmin\AppData\Roaming\local\bin\
|
# ls C:\Users\runneradmin\AppData\Roaming\local\bin\
|
||||||
# ls C:\Users\runneradmin\AppData\Roaming\local\
|
# ls C:\Users\runneradmin\AppData\Roaming\local\
|
||||||
# ls D:\a\hledger
|
# ls D:\a\hledger
|
||||||
@ -67,60 +66,59 @@ jobs:
|
|||||||
|
|
||||||
# declare/restore cached things
|
# declare/restore cached things
|
||||||
|
|
||||||
# stack's global package db, holding package indexes, our haskell deps, downloaded ghc
|
|
||||||
- name: Cache C:\Users\runneradmin\AppData\Local\Programs\stack\
|
- name: Cache stack global db # downloaded ghcs, package indexes, third-party haskell deps
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: C:\Users\runneradmin\AppData\Local\Programs\stack\
|
path: C:\Users\runneradmin\AppData\Local\Programs\stack\
|
||||||
# which files signal a change in the global stack dir ?
|
# which files signal a change in the global stack dir ?
|
||||||
# **.yaml includes stack.yaml and */package.yaml, and hopefully no other changing yamls
|
# **.yaml includes *.package.yaml and all stack.yamls (too many)
|
||||||
# stack.lock should be included too, but how..
|
# and hopefully no other changing yamls
|
||||||
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
|
||||||
|
|
||||||
# stack's local bin dir (like ~/.local/bin)
|
- name: Cache stack local bin dir
|
||||||
- name: Cache C:\Users\runneradmin\AppData\Roaming\stack\
|
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: C:\Users\runneradmin\AppData\Roaming\stack\
|
path: C:\Users\runneradmin\AppData\Roaming\stack\
|
||||||
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
|
||||||
|
|
||||||
# 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
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: .stack-work
|
path: .stack-work
|
||||||
key: ${{ runner.os }}-stack-work-${{ hashFiles('**.yaml') }}
|
key: ${{ runner.os }}-stack-work-${{ hashFiles('**.yaml') }}
|
||||||
restore-key: ${{ runner.os }}-stack-work
|
restore-keys: ${{ runner.os }}-stack-work
|
||||||
|
|
||||||
- name: Cache hledger-lib/.stack-work
|
- name: Cache hledger-lib/.stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: hledger-lib/.stack-work
|
path: hledger-lib/.stack-work
|
||||||
key: ${{ runner.os }}-hledger-lib-stack-work-${{ hashFiles('hledger-lib/package.yaml') }}
|
key: ${{ runner.os }}-hledger-lib-stack-work-${{ hashFiles('hledger-lib/package.yaml') }}
|
||||||
restore-key: ${{ runner.os }}-hledger-lib-stack-work
|
restore-keys: ${{ runner.os }}-hledger-lib-stack-work
|
||||||
|
|
||||||
- name: Cache hledger/.stack-work
|
- name: Cache hledger/.stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: hledger/.stack-work
|
path: hledger/.stack-work
|
||||||
key: ${{ runner.os }}-hledger-stack-work-${{ hashFiles('hledger/package.yaml') }}
|
key: ${{ runner.os }}-hledger-stack-work-${{ hashFiles('hledger/package.yaml') }}
|
||||||
restore-key: ${{ runner.os }}-hledger-stack-work
|
restore-keys: ${{ runner.os }}-hledger-stack-work
|
||||||
|
|
||||||
- name: Cache hledger-ui/.stack-work
|
- name: Cache hledger-ui/.stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: hledger-ui/.stack-work
|
path: hledger-ui/.stack-work
|
||||||
key: ${{ runner.os }}-hledger-ui-stack-work-${{ hashFiles('hledger-ui/package.yaml') }}
|
key: ${{ runner.os }}-hledger-ui-stack-work-${{ hashFiles('hledger-ui/package.yaml') }}
|
||||||
restore-key: ${{ runner.os }}-hledger-ui-stack-work
|
restore-keys: ${{ runner.os }}-hledger-ui-stack-work
|
||||||
|
|
||||||
- name: Cache hledger-web/.stack-work
|
- name: Cache hledger-web/.stack-work
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: hledger-web/.stack-work
|
path: hledger-web/.stack-work
|
||||||
key: ${{ runner.os }}-hledger-web-stack-work-${{ hashFiles('hledger-web/package.yaml') }}
|
key: ${{ runner.os }}-hledger-web-stack-work-${{ hashFiles('hledger-web/package.yaml') }}
|
||||||
restore-key: ${{ runner.os }}-hledger-web-stack-work
|
restore-keys: ${{ runner.os }}-hledger-web-stack-work
|
||||||
|
|
||||||
# actions
|
# actions
|
||||||
|
|
||||||
@ -164,48 +162,6 @@ jobs:
|
|||||||
path: hledger.zip
|
path: hledger.zip
|
||||||
|
|
||||||
|
|
||||||
# Directory: C:\Users\runneradmin
|
|
||||||
#
|
|
||||||
# Mode LastWriteTime Length Name
|
|
||||||
# ---- ------------- ------ ----
|
|
||||||
# d----l 3/5/2020 7:40 PM .cargo
|
|
||||||
# d----- 3/5/2020 7:40 PM .config
|
|
||||||
# d----l 3/5/2020 7:40 PM .rustup
|
|
||||||
# d----- 3/6/2020 7:16 PM .stack
|
|
||||||
# d-r--- 3/5/2020 7:40 PM 3D Objects
|
|
||||||
# d-r--- 3/5/2020 7:40 PM Contacts
|
|
||||||
# d-r--- 3/5/2020 7:40 PM Desktop
|
|
||||||
# d-r--- 3/5/2020 7:40 PM Documents
|
|
||||||
# d-r--- 3/5/2020 7:40 PM Downloads
|
|
||||||
# d-r--- 3/5/2020 7:40 PM Favorites
|
|
||||||
# d-r--- 3/5/2020 7:40 PM Links
|
|
||||||
# d-r--- 3/5/2020 7:40 PM Music
|
|
||||||
# d-r--- 3/5/2020 7:40 PM Pictures
|
|
||||||
# d-r--- 3/5/2020 7:40 PM Saved Games
|
|
||||||
# d-r--- 3/5/2020 7:40 PM Searches
|
|
||||||
# d-r--- 3/5/2020 7:40 PM Videos
|
|
||||||
#
|
|
||||||
# Directory: C:\Users\runneradmin\AppData
|
|
||||||
#
|
|
||||||
# Mode LastWriteTime Length Name
|
|
||||||
# ---- ------------- ------ ----
|
|
||||||
# d----- 3/6/2020 7:16 PM Local
|
|
||||||
# d----- 3/5/2020 7:40 PM LocalLow
|
|
||||||
# d----- 3/5/2020 7:40 PM Roaming
|
|
||||||
#
|
|
||||||
# Directory: C:\Users\runneradmin\AppData\Local
|
|
||||||
#
|
|
||||||
# Mode LastWriteTime Length Name
|
|
||||||
# ---- ------------- ------ ----
|
|
||||||
# d----- 3/6/2020 7:16 PM GitHub
|
|
||||||
# d----- 3/5/2020 7:40 PM Google
|
|
||||||
# d----- 3/5/2020 7:42 PM Microsoft
|
|
||||||
# d----- 3/6/2020 7:15 PM Packages
|
|
||||||
# d----- 3/6/2020 7:17 PM Temp
|
|
||||||
#
|
|
||||||
# ls : Cannot find path 'C:\Users\runneradmin\AppData\Local\Programs\' because it does not exist.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# - name: Configure
|
# - name: Configure
|
||||||
# if: startsWith(matrix.name, 'windows')
|
# if: startsWith(matrix.name, 'windows')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user