Skip to content

Commit 10f84fc

Browse files
committed
Try to cache windows .stack folder in github action
1 parent b00d3f4 commit 10f84fc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/main.yml

+13
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- uses: actions/checkout@v2
2121
- name: Cache-stack
2222
uses: actions/cache@v2
23+
if: matrix.os != 'windows-latest'
2324
env:
2425
cache-name: stack
2526
with:
@@ -29,6 +30,18 @@ jobs:
2930
${{ runner.os }}-build-${{ env.cache-name }}-
3031
${{ runner.os }}-build-
3132
${{ runner.os }}-
33+
- name: Cache-stack (Windows)
34+
uses: actions/cache@v2
35+
if: matrix.os == 'windows-latest'
36+
env:
37+
cache-name: stack-windows
38+
with:
39+
path: 'C:\Users\runneradmin\AppData\Local\Programs\stack'
40+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/stack.yaml.lock') }}
41+
restore-keys: |
42+
${{ runner.os }}-build-${{ env.cache-name }}-
43+
${{ runner.os }}-build-
44+
${{ runner.os }}-
3245
- name: Setup Stack
3346
env:
3447
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

0 commit comments

Comments
 (0)